projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e6bcb
)
i7core_edac: We need to use list_for_each_entry_safe to avoid errors
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 24 Sep 2009 12:59:13 +0000
(09:59 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 10 May 2010 14:45:00 +0000
(11:45 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/i7core_edac.c
b/drivers/edac/i7core_edac.c
index c3fec5de3e51c12c88de84a952e4c897d4801230..2e4b0abf9d43630925699c1620ec54d6219ebd4b 100644
(file)
--- a/
drivers/edac/i7core_edac.c
+++ b/
drivers/edac/i7core_edac.c
@@
-1124,6
+1124,7
@@
static struct mcidev_sysfs_attribute i7core_inj_attrs[] = {
.show = i7core_ce_regs_show,
.store = NULL,
},
+ { .attr = { .name = NULL } }
};
/****************************************************************************
@@
-1155,9
+1156,9
@@
static void i7core_put_devices(struct i7core_dev *i7core_dev)
static void i7core_put_all_devices(void)
{
- struct i7core_dev *i7core_dev;
+ struct i7core_dev *i7core_dev
, *tmp
;
- list_for_each_entry
(i7core_dev
, &i7core_edac_list, list)
+ list_for_each_entry
_safe(i7core_dev, tmp
, &i7core_edac_list, list)
i7core_put_devices(i7core_dev);
}