]> git.hungrycats.org Git - linux/commit
[PATCH] fix possible NULL pointer dereference in scsi_scan.c
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Mar 2003 12:11:09 +0000 (06:11 -0600)
committerChristoph Hellwig <hch@sgi.com>
Fri, 14 Mar 2003 12:11:09 +0000 (06:11 -0600)
commit5f99bd9a4ad3c3f4829f2482e886229e59446f61
treed7a18832e8bc6baa2bd093b105c1eb2228c1e7ae
parent306fda03757fc4b826a31c4faa118530358ff7b2
[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.
drivers/scsi/scsi_scan.c