Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1378652 > unrolled thread

[patch] hpsa: set the enclosure identifier to zero

Started byDan Carpenter <dan.carpenter@oracle.com>
First post2016-04-14 11:40 +0200
Last post2016-04-14 11:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [patch] hpsa: set the enclosure identifier to zero Dan Carpenter <dan.carpenter@oracle.com> - 2016-04-14 11:40 +0200

#1378652 — [patch] hpsa: set the enclosure identifier to zero

FromDan Carpenter <dan.carpenter@oracle.com>
Date2016-04-14 11:40 +0200
Subject[patch] hpsa: set the enclosure identifier to zero
Message-ID<rnLUM-83r-47@gated-at.bofh.it>
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 <dan.carpenter@oracle.com>

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 5be944c..25aa219 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -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;
 }
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web