projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b7789b
)
lpfc: Fix driver crash when module parameter lpfc_fcp_io_channel set to 16
author
James Smart
<
[email protected]
>
Wed, 16 Dec 2015 23:11:56 +0000
(18:11 -0500)
committer
Martin K. Petersen
<
[email protected]
>
Tue, 22 Dec 2015 02:54:09 +0000
(21:54 -0500)
Fix driver crash when module parameter lpfc_fcp_io_channel set to 16
Signed-off-by: Dick Kennedy <
[email protected]
>
Signed-off-by: James Smart <
[email protected]
>
Reviewed-by: Hannes Reinicke <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/lpfc/lpfc_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_init.c
b/drivers/scsi/lpfc/lpfc_init.c
index db9446c612dadf1ffebb3de4803eb4a59ec6442f..5915407d19aa9ef42dd8f06953779c2ade0a8701 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_init.c
+++ b/
drivers/scsi/lpfc/lpfc_init.c
@@
-8833,9
+8833,12
@@
found:
* already mapped to this phys_id.
*/
if (cpup->irq != LPFC_VECTOR_MAP_EMPTY) {
- chann[saved_chann] =
- cpup->channel_id;
- saved_chann++;
+ if (saved_chann <=
+ LPFC_FCP_IO_CHAN_MAX) {
+ chann[saved_chann] =
+ cpup->channel_id;
+ saved_chann++;
+ }
goto out;
}