[PATCH] fix possible NULL pointer dereference in scsi_scan.c
If the sdev allocation fails and q is non-null we could dereference sdev->request_queue. While at it reformat the function to use goto-based cleanup - that's much easier to parse.
Showing
Please register or sign in to comment