]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hpsa: set the enclosure identifier to zero
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Apr 2016 09:37:44 +0000 (12:37 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 20:17:44 +0000 (12:17 -0800)
This has only called from show_sas_rphy_enclosure_identifier().  The
caller expects that we set an identifier, otherwise it uses an
uninitialized variable.

[mkp: fixed typo]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Orabug: 25605941
(cherry picked from commit aa105695732daa6604cb017ceb59a05ef34956bd)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/hpsa.c

index d04f65efab713c75779b4501a4fcdeaa6e79b60d..058d95408733ca29979d82ed1dde0f3d456740e6 100644 (file)
@@ -9753,6 +9753,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;
 }