From: Matthew Wilcox Date: Sun, 5 Feb 2006 15:01:33 +0000 (-0700) Subject: [SCSI] fix uninitialized variable error X-Git-Tag: v2.6.17-rc1~1129^2~4^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97a83a06b44d4d1cb01191423caf9813a150b95;p=pandora-kernel.git [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 --- Reading git-diff-tree failed