]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/scsi/pmcraid.c
Merge branch 'master' into for-next
[mv-sheeva.git] / drivers / scsi / pmcraid.c
index ee161c6ca71230a1ea02dd9b88507e2bee1b177b..b86db84d6f325c98623233d1a884ffca787b0680 100644 (file)
@@ -3870,6 +3870,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