[SCSI] libsas: kill spurious sas_put_device
authorMaciej Trela <maciej.trela@intel.com>
Fri, 13 Jan 2012 21:52:38 +0000 (21:52 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 21:27:44 +0000 (15:27 -0600)
commitfdfd9d1b8912991d88fc29a456867c62515218f9
tree4537befd93ba3821dc679d3352793e149bc3c944
parent5d7f6d1071eadd020edb2cf366d358e0f6d0a0f9
[SCSI] libsas: kill spurious sas_put_device

Holdover from a patch rework, prior to the addition of SAS_DEV_DESTROY
we were holding a reference while the destruct was pending in case the
domain was torn down before the desctruct event ran.  That case is
covered by SAS_DEV_DESTROY, and the sas_put_device() just corrupts freed
memory, or worse frees the memory while another agent holds a reference.

Signed-off-by: Maciej Trela <maciej.trela@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_discover.c