]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: csiostor: Fix dereference of null pointer rn
authorColin Ian King <colin.i.king@gmail.com>
Thu, 29 Jan 2026 15:53:32 +0000 (15:53 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 4 Feb 2026 03:33:32 +0000 (22:33 -0500)
commit1982257570b84dc33753d536dd969fd357a014e9
tree509fba544f20b6f4c8bedfc73da19b2a61415072
parente17f0d4cc006265dd92129db4bf9da3a2e4a4f66
scsi: csiostor: Fix dereference of null pointer rn

The error exit path when rn is NULL ends up deferencing the null pointer rn
via the use of the macro CSIO_INC_STATS. Fix this by adding a new error
return path label after the use of the macro to avoid the deference.

Fixes: a3667aaed569 ("[SCSI] csiostor: Chelsio FCoE offload driver")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20260129155332.196338-1-colin.i.king@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_scsi.c