linux/drivers/scsi/qla4xxx
Dan Carpenter 9dcf111dd3 scsi: qla4xxx: Prevent a potential error pointer dereference
The qla4xxx_get_ep_fwdb() function is supposed to return NULL on error,
but qla4xxx_ep_connect() returns error pointers.  Propagating the error
pointers will lead to an Oops in the caller, so change the error pointers
to NULL.

Fixes: 13483730a1 ("[SCSI] qla4xxx: fix flash/ddb support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/aJwnVKS9tHsw1tEu@stanley.mountain
Reviewed-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-08-14 23:22:46 -04:00
..
Kconfig
Makefile
ql4_83xx.c
ql4_83xx.h
ql4_attr.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
ql4_bsg.c
ql4_bsg.h
ql4_dbg.c
ql4_dbg.h
ql4_def.h
ql4_fw.h
ql4_glbl.h
ql4_init.c
ql4_inline.h
ql4_iocb.c
ql4_isr.c scsi: qla4xxx: Remove unused 'count' variable 2023-04-02 21:48:46 -04:00
ql4_mbx.c scsi: qla4xxx: Replace deprecated strncpy() with strscpy() 2024-03-10 18:37:43 -04:00
ql4_nvram.c
ql4_nvram.h
ql4_nx.c scsi: qla4xxx: Remove duplicate struct crb_addr_pair 2025-04-28 21:30:47 -04:00
ql4_nx.h
ql4_os.c scsi: qla4xxx: Prevent a potential error pointer dereference 2025-08-14 23:22:46 -04:00
ql4_version.h