[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)
commit0b8393578c70bc1f09790eeae7d918f38da2e010
tree0d1ba0f9e3470800e69753e5f228b733af7205ed
parenta1f74ae82d133ebb2aabb19d181944b4e83e9960
[SCSI] scsi_dh: fix reference counting in scsi_dh_activate error path

Commit db422318cbca55168cf965f655471dbf8be82433 ([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