Commit 195b3a1
committed
scsi: qla4xxx: Prevent a potential error pointer dereference
JIRA: https://issues.redhat.com/browse/RHEL-121669
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: 1348373 ("[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>
(cherry picked from commit 9dcf111)
Signed-off-by: Chris Leech <cleech@redhat.com>1 parent 1cf6152 commit 195b3a1
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6606 | 6606 | | |
6607 | 6607 | | |
6608 | 6608 | | |
| 6609 | + | |
| 6610 | + | |
6609 | 6611 | | |
6610 | 6612 | | |
6611 | 6613 | | |
| |||
0 commit comments