diff options
-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 0ce0c279aabf..aeaf465922e5 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, | |||
1134 | if (ioc->Request.Type.Direction == XFER_WRITE) { | 1134 | if (ioc->Request.Type.Direction == XFER_WRITE) { |
1135 | if (copy_from_user | 1135 | if (copy_from_user |
1136 | (buff[sg_used], data_ptr, sz)) { | 1136 | (buff[sg_used], data_ptr, sz)) { |
1137 | status = -ENOMEM; | 1137 | status = -EFAULT; |
1138 | goto cleanup1; | 1138 | goto cleanup1; |
1139 | } | 1139 | } |
1140 | } else { | 1140 | } else { |