mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
The function alloc_workqueue() in lpfc_sli4_driver_resource_setup() can
fail, but there is no check of its return value. The return value should be
checked.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 3cee98db26 ("scsi: lpfc: Fix crash on driver unload in wq free")
Reported-by: Hacash Robot <[email protected]>
Reviewed-by: James Smart <[email protected]>
Signed-off-by: William Dean <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>