aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorJames Smart <[email protected]>2021-10-04 23:12:10 +0000
committerMartin K. Petersen <[email protected]>2021-10-05 03:37:08 +0000
commit69a3a7bc7239170557dfc2c4ad5786a0c3d8759a (patch)
treec25adc360c010ac7998a012c14fa440b5ce2a585 /drivers/fpga/fpga-mgr.c
parentscsi: elx: efct: Delete stray unlock statement (diff)
downloadkernel-69a3a7bc7239170557dfc2c4ad5786a0c3d8759a.tar.gz
kernel-69a3a7bc7239170557dfc2c4ad5786a0c3d8759a.zip
scsi: lpfc: Fix memory overwrite during FC-GS I/O abort handling
When an FC-GS I/O is aborted by lpfc, the driver requires a node pointer for a dereference operation. In the abort I/O routine, the driver miscasts a context pointer to the wrong data type and overwrites a single byte outside of the allocated space. This miscast is done in the abort I/O function handler because the handler works on both FC-GS and FC-LS commands. However, the code neglected to get the correct job location for the node. Fix this by acquiring the necessary node pointer from the correct job structure depending on the I/O type. Link: https://lore.kernel.org/r/[email protected] Co-developed-by: Justin Tee <[email protected]> Signed-off-by: Justin Tee <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions