summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2006-02-05 16:01:33 +0100
committer <jejb@mulgrave.il.steeleye.com>2006-02-28 05:55:07 +0100
commita97a83a06b44d4d1cb01191423caf9813a150b95 (patch)
treef74949bd8b8374036d19947b43f3e6d239eb5710 /drivers/base/core.c
parent[SCSI] cciss: kfree(NULL) is legal (diff)
downloadlinux-a97a83a06b44d4d1cb01191423caf9813a150b95.tar.xz
linux-a97a83a06b44d4d1cb01191423caf9813a150b95.zip
[SCSI] fix uninitialized variable error
in __scsi_add_device, sdev may be uninitialised if scsi_host_scan_allowed() returns false. Fix by initialising at the top of the routine. Also rely on the fact that scsi_probe_and_add_lun() only actually fills in the sdev pointer if the SCSI_SCAN_LUN_PRESENT case (so no need to check the return value). Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/base/core.c')
0 files changed, 0 insertions, 0 deletions