projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
807be73
)
[SCSI] hpsa: clarify obscure comment in adjust_hpsa_scsi_table
author
Stephen M. Cameron
<scameron@beardog.cce.hp.com>
Thu, 4 Feb 2010 14:43:31 +0000
(08:43 -0600)
committer
James Bottomley
<James.Bottomley@suse.de>
Wed, 17 Feb 2010 19:22:51 +0000
(13:22 -0600)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/hpsa.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hpsa.c
b/drivers/scsi/hpsa.c
index
b91ccd4
..
42295c4
100644
(file)
--- a/
drivers/scsi/hpsa.c
+++ b/
drivers/scsi/hpsa.c
@@
-838,7
+838,11
@@
static void adjust_hpsa_scsi_table(struct ctlr_info *h, int hostno,
(void) hpsa_scsi_add_entry(h, hostno, sd[entry],
added, &nadded);
/* add can't fail, we just removed one. */
- sd[entry] = NULL; /* prevent it from being freed */
+
+ /* Set it to NULL to prevent it from being freed
+ * at the bottom of hpsa_update_scsi_devices()
+ */
+ sd[entry] = NULL;
}
i++;
}