In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Fix NULL dereference in error handling Smatch reported: drivers/scsi/qedf/qedfmain.c:3056 qedfallocglobalqueues() warn: missing unwind goto? At this point in the function, nothing has been allocated so we can return directly. In particular the "qedf->globalqueues" have not been allocated so calling qedffreeglobalqueues() will lead to a NULL dereference when we check if (!gl[i]) and "gl" is NULL.