rk3066 add phone pad modem support
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / pmcraid.c
index fca6a895307093a4630530b83e03e66b7fd447cd..d079f9a3c6b3a7fc2dedd4cc850d32fcc82b4930 100644 (file)
@@ -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