From: Alan Stern Date: Thu, 18 Mar 2010 19:41:11 +0000 (-0400) Subject: [SCSI] don't reap targets upon device_add failure X-Git-Tag: v2.6.35-rc1~470^2^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1821438a9b6a8454281ec2e151014709f641d2d5;p=pandora-kernel.git [SCSI] don't reap targets upon device_add failure This patch (as1358) fixes a bug in the error pathway of scsi_target_add(). If registration fails, the target should not be reaped. The reaping occurs later, when scanning is finished and all the child devices are removed. The current code leaves an unbalanced value in starget->reap_ref. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed