[SCSI] libsas: sas_rediscover_dev did not look at the SMP exec status.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Fri, 22 Jun 2012 06:36:10 +0000 (23:36 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:52 +0000 (08:58 +0100)
commitb2311a287553af4dffaef224cdd6e3ddf6783312
tree406014158dd9f511e3f59de053f8ac4fe2e93394
parent4e646ddd5faf707602dcb4b491412b72180da3b3
[SCSI] libsas: sas_rediscover_dev did not look at the SMP exec status.

The discovery function "sas_rediscover_dev" had two bugs: 1) it did
not pay attention to the return status from the SMP task execution;
2) the stack variable used for the returned SAS address was compared
against 0 without being initialized.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_expander.c