]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: qla1280: Fix kernel oops when debug level > 2
authorMagnus Lindholm <linmag7@gmail.com>
Sat, 25 Jan 2025 09:49:22 +0000 (10:49 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Feb 2025 22:54:56 +0000 (17:54 -0500)
commit5233e3235dec3065ccc632729675575dbe3c6b8a
tree0bd0c0e2820dac17ed6380cacc70706081f4a946
parent1a78a56ea65252bb089e0daace989167227f2d31
scsi: qla1280: Fix kernel oops when debug level > 2

A null dereference or oops exception will eventually occur when qla1280.c
driver is compiled with DEBUG_QLA1280 enabled and ql_debug_level > 2.  I
think its clear from the code that the intention here is sg_dma_len(s) not
length of sg_next(s) when printing the debug info.

Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://lore.kernel.org/r/20250125095033.26188-1-linmag7@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla1280.c