]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_dh: fix reference counting in scsi_dh_activate error path
authorMike Snitzer <snitzer@redhat.com>
Fri, 8 Apr 2011 19:05:36 +0000 (15:05 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 24 Apr 2011 16:02:09 +0000 (11:02 -0500)
commit59db3e354ae52e7f36aa50651470db97b88e8b16
tree0d1ba0f9e3470800e69753e5f228b733af7205ed
parent587239fda9c93667a27af07fee995a72e2032d53
[SCSI] scsi_dh: fix reference counting in scsi_dh_activate error path

Commit efededaabe1dc094c3eebffc14170786ac9f8473 ([SCSI] scsi_dh:
propagate SCSI device deletion) introduced a regression where the device
reference is not dropped prior to scsi_dh_activate's early return from
the error path.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@kernel.org # 2.6.38
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/device_handler/scsi_dh.c