projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lpfc 8.3.25: Fabric and Target Discovery Fixes
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
scsi
/
pmcraid.c
diff --git
a/drivers/scsi/pmcraid.c
b/drivers/scsi/pmcraid.c
index fca6a895307093a4630530b83e03e66b7fd447cd..d079f9a3c6b3a7fc2dedd4cc850d32fcc82b4930 100644
(file)
--- 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