diff options
Diffstat (limited to 'drivers/scsi/pmcraid.c')
| -rw-r--r-- | drivers/scsi/pmcraid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index fca6a895307..d079f9a3c6b 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
| @@ -3871,6 +3871,9 @@ static long pmcraid_ioctl_passthrough( | |||
| 3871 | pmcraid_err("couldn't build passthrough ioadls\n"); | 3871 | pmcraid_err("couldn't build passthrough ioadls\n"); |
| 3872 | goto out_free_buffer; | 3872 | goto out_free_buffer; |
| 3873 | } | 3873 | } |
| 3874 | } else if (request_size < 0) { | ||
| 3875 | rc = -EINVAL; | ||
| 3876 | goto out_free_buffer; | ||
| 3874 | } | 3877 | } |
| 3875 | 3878 | ||
| 3876 | /* If data is being written into the device, copy the data from user | 3879 | /* If data is being written into the device, copy the data from user |
