diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2008-08-04 10:56:07 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-08-06 12:30:03 +0200 |
commit | f7108f91cdcaca07c6a99777b2724093294f36ee (patch) | |
tree | d0d7b6ccb1bd6e60c5f48f1ea7c7c420d5a6079b /drivers/block | |
parent | 0967d61ea0d8e8a7826bd8949cd93dd1e829ac55 (diff) | |
download | kernel_samsung_crespo-f7108f91cdcaca07c6a99777b2724093294f36ee.zip kernel_samsung_crespo-f7108f91cdcaca07c6a99777b2724093294f36ee.tar.gz kernel_samsung_crespo-f7108f91cdcaca07c6a99777b2724093294f36ee.tar.bz2 |
cciss: return -EFAULT if copy_from_user() fails
Return -EFAULT instead of -ENOMEM if copy_from_user() fails.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 0ce0c27..aeaf465 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -1134,7 +1134,7 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, if (ioc->Request.Type.Direction == XFER_WRITE) { if (copy_from_user (buff[sg_used], data_ptr, sz)) { - status = -ENOMEM; + status = -EFAULT; goto cleanup1; } } else { |