hpsa: set the enclosure identifier to zero
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.
Signed-off-by Dan Carpenter <[email protected]>
drivers/scsi/hpsa.c +1 -0
@@ -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 ; }
Martin K. Petersen
AppliedQuoted 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