Skip to contentSkip to conversation

hpsa: set the enclosure identifier to zero

PATCH Applied Dan Carpenter 2 participants 2 messages Apr 14, 2016 – Apr 26, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpsa: set the enclosure identifier to zero

This has only called from show_sas_rphy_enclosure_identifier(). The caller expects that we set an identifier, otherwise it uses an unintialized variable.

drivers/scsi/hpsa.c +1 -0
index 5be944c..25aa219 100644
@@ -9602,6 +9602,7 @@ hpsa_sas_get_linkerrors(struct sas_phy *phy)
 static int
 hpsa_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
 {
+	*identifier = 0;
 	return 0;
 }
 
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dan" = Dan Carpenter <[email protected]> writes:

Dan> This has only called from show_sas_rphy_enclosure_identifier(). Dan> The caller expects that we set an identifier, otherwise it uses an Dan> unintialized variable.

Applied to 4.7/scsi-queue.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering