X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fscsi%2Fpmcraid.c;h=d079f9a3c6b3a7fc2dedd4cc850d32fcc82b4930;hp=fca6a895307093a4630530b83e03e66b7fd447cd;hb=1b8e94993c4752d98c33903aa836acc15f7e6d5c;hpb=e6ece70732b905742ad91a7b5489e0ca1362c0cd diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index fca6a8953070..d079f9a3c6b3 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -3871,6 +3871,9 @@ static long pmcraid_ioctl_passthrough( pmcraid_err("couldn't build passthrough ioadls\n"); goto out_free_buffer; } + } else if (request_size < 0) { + rc = -EINVAL; + goto out_free_buffer; } /* If data is being written into the device, copy the data from user