]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/pmcraid.c
Merge branch 'master' into for-next
[~andy/linux] / drivers / scsi / pmcraid.c
index fca6a895307093a4630530b83e03e66b7fd447cd..b86db84d6f325c98623233d1a884ffca787b0680 100644 (file)
@@ -39,7 +39,6 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/hdreg.h>
-#include <linux/version.h>
 #include <linux/io.h>
 #include <linux/slab.h>
 #include <asm/irq.h>
@@ -3871,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