Message ID | 20230417135518.184595-1-jinhongzhu@hust.edu.cn |
---|---|
State | Superseded |
Headers | show |
Series | qedf: Fix NULL dereference in error handling | expand |
Jinhong,
> Fixes: 09e062ce83cb ("qedf: Fix NULL dereference in error handling")
This commit does not appear to exist in Linus' tree.
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 35e16600fc63..f2c7dd4db9c6 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -3043,9 +3043,8 @@ static int qedf_alloc_global_queues(struct qedf_ctx *qedf) * addresses of our queues */ if (!qedf->p_cpuq) { - status = -EINVAL; QEDF_ERR(&qedf->dbg_ctx, "p_cpuq is NULL.\n"); - goto mem_alloc_failure; + return -EINVAL; } qedf->global_queues = kzalloc((sizeof(struct global_queue *)