]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libsas: sas_rediscover_dev did not look at the SMP exec status.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Sat, 10 Mar 2012 05:55:50 +0000 (05:55 +0000)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 06:20:50 +0000 (23:20 -0700)
commit216245dc81b59d343983e4567aec35a14cb380d6
tree72ebedfdf615eb828bd076edd148b4a3c1c67772
parent60754ea0feb803fbaf39d1f966c209ec6a38cdad
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>
[djbw: todo sanitize smp_execute_task return values (see: residue)]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/libsas/sas_expander.c