diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index e58581c320ee32989df7427ba4ee495b9dfcf31b..8545d1826725bde1aee310f2f4c1469aa11e4c12 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -5093,7 +5093,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