mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-17 04:36:09 +00:00
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:
|
||
|---|---|---|
| .. | ||
| drv_fcoe_fw_funcs.c | ||
| drv_fcoe_fw_funcs.h | ||
| drv_scsi_fw_funcs.c | ||
| drv_scsi_fw_funcs.h | ||
| Kconfig | ||
| Makefile | ||
| qedf_attr.c | ||
| qedf_dbg.c | ||
| qedf_dbg.h | ||
| qedf_debugfs.c | ||
| qedf_els.c | ||
| qedf_fip.c | ||
| qedf_hsi.h | ||
| qedf_io.c | ||
| qedf_main.c | ||
| qedf_version.h | ||
| qedf.h | ||