From: Tony Battersby Date: Tue, 22 Jan 2008 20:25:49 +0000 (-0500) Subject: [SCSI] sg: fix /proc/scsi/sg/devices when no SCSI devices X-Git-Tag: v2.6.25-rc1~1230^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53474c042c0e1be39557474c945ad4a8e653ad46;p=pandora-kernel.git [SCSI] sg: fix /proc/scsi/sg/devices when no SCSI devices The patch "[SCSI] sg: use idr to replace static arrays" in 2.6.24-rc1 causes a bogus line to appear in /proc/scsi/sg/devices containing "-1 -1 -1 -1 -1 -1 -1 -1 -1" when there are no SCSI devices in the system. In 2.6.23, /proc/scsi/sg/devices is empty when there are no SCSI devices in the system. A similar problem exists with /proc/scsi/sg/device_strs. The following patch restores the behavior of 2.6.23. Signed-off-by: Tony Battersby Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed