diff options
| author | Jinhong Zhu <[email protected]> | 2023-05-02 22:00:21 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2023-05-08 07:19:20 -0400 |
| commit | f025312b089474a54e4859f3453771314d9e3d4f (patch) | |
| tree | aa6f30989cc8b1f66b200c9392e13527bedbba4f /tools/perf/scripts/python | |
| parent | 9a4327fd8864ff78d97e9a3c3c3c992353d06fee (diff) | |
scsi: qedf: Fix NULL dereference in error handling
Smatch reported:
drivers/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues()
warn: missing unwind goto?
At this point in the function, nothing has been allocated so we can return
directly. In particular the "qedf->global_queues" have not been allocated
so calling qedf_free_global_queues() will lead to a NULL dereference when
we check if (!gl[i]) and "gl" is NULL.
Fixes: 61d8658b4a43 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Signed-off-by: Jinhong Zhu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions