diff options
author | James Smart <[email protected]> | 2019-08-28 16:19:11 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-08-29 18:15:07 -0400 |
commit | 01f2ef6d18e70c92bbf3743be4b908f52a059263 (patch) | |
tree | 3ea4bf32b2ee710fd552eaa40c86a4848500ee50 /net/switchdev/switchdev.c | |
parent | 9db6c14c36fc8f7824ade95f53bcdad43df678b4 (diff) |
scsi: lpfc: fix 12.4.0.0 GPF at boot
The 12.4.0.0 patch that merged WQ/CQ pairs into single per-cpu pair
contained a bug: a local variable was set to the queue pair by index. This
should have allowed the local variable to be natively used. Instead, the
code reused the index relative to the local variable, obtaining a random
pointer value that when used eventually faulted the system
Convert offending code to use local variable.
Fixes: c00f62e6c546 ("scsi: lpfc: Merge per-protocol WQ/CQ pairs into single per-cpu pair")
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Tested-by: Abdul Haleem <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions