]> err.no Git - linux-2.6/commit
[PATCH] scsi_scan: check return code from scsi_sysfs_add_sdev
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 27 Jul 2005 18:43:46 +0000 (11:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:25:51 +0000 (16:25 -0700)
commitb24b1033451fcc87087a692fc47ca45daebd51ac
tree6a0bba28834105976dad411f37d98a494f6312b0
parent104e49fc1e1656142869fab0e75d7df52b72eed9
[PATCH] scsi_scan: check return code from scsi_sysfs_add_sdev

Adds a missing check for an error return code from scsi_sysfs_add_sdev.
This resolves entry #4863 in the OSDL bugzilla.  Although in that bug
report the failure occurred because of a confusion over scanning vs.
rescanning, in general add_sdev can fail for a number of reasons (the
simplest being insufficient memory) and the caller should cope properly.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/scsi_scan.c