[SCSI] libsas: fix leak of dev->sata_dev.identify_[packet_]device
authorDan Williams <dan.j.williams@intel.com>
Fri, 18 Nov 2011 01:59:48 +0000 (17:59 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 19:39:36 +0000 (13:39 -0600)
commit756f173fb5fa90ec15222e80fb579288be7794fd
tree83633164ff4b8fb20c2fb383429905e25ceed1fc
parent735f7d2fedf57380214221be7bed7f62d729e262
[SCSI] libsas: fix leak of dev->sata_dev.identify_[packet_]device

These are never freed in the nominal path.  A domain_device has a
different lifetime than a sas_rphy we need a dev->rphy independent way
of identifying sata devices.

Reviewed-by: Jack Wang <jack_wang@usish.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
include/scsi/sas_ata.h