hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl
[pandora-kernel.git] / drivers / scsi / hpsa.c
index 5b7e1bf..603a2cb 100644 (file)
@@ -2769,7 +2769,7 @@ static int hpsa_big_passthru_ioctl(struct ctlr_info *h, void __user *argp)
                }
                if (ioc->Request.Type.Direction == XFER_WRITE) {
                        if (copy_from_user(buff[sg_used], data_ptr, sz)) {
-                               status = -ENOMEM;
+                               status = -EFAULT;
                                goto cleanup1;
                        }
                } else