Commit 69a3a7b
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]>1 parent a013c71 commit 69a3a7b
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12292 | 12292 | | |
12293 | 12293 | | |
12294 | 12294 | | |
12295 | | - | |
| 12295 | + | |
12296 | 12296 | | |
12297 | 12297 | | |
12298 | 12298 | | |
12299 | 12299 | | |
12300 | | - | |
| 12300 | + | |
12301 | 12301 | | |
12302 | 12302 | | |
12303 | 12303 | | |
12304 | 12304 | | |
12305 | 12305 | | |
12306 | 12306 | | |
12307 | 12307 | | |
12308 | | - | |
| 12308 | + | |
| 12309 | + | |
12309 | 12310 | | |
12310 | | - | |
| 12311 | + | |
| 12312 | + | |
12311 | 12313 | | |
| 12314 | + | |
12312 | 12315 | | |
12313 | 12316 | | |
12314 | 12317 | | |
| |||
0 commit comments