summaryrefslogtreecommitdiff
path: root/memdebug
diff options
context:
space:
mode:
Diffstat (limited to 'memdebug')
-rw-r--r--memdebug/memdebug.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/memdebug/memdebug.c b/memdebug/memdebug.c
index 887ca42..b0af5b1 100644
--- a/memdebug/memdebug.c
+++ b/memdebug/memdebug.c
@@ -7,6 +7,10 @@
* Copyright (c) 2010 Zurich University of Applied Sciences
* Copyright (c) 2010 Tobias Klauser <tklauser@distanz.ch>
*
+ * HISTORY
+ * 12.11.2010 gram Bug in function 'memdebug_cleanup' corrected (access
+ * just freed struct)
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@@ -44,11 +48,12 @@ void memdebug_start(void)
void memdebug_cleanup(void)
{
- struct memdebug_heap_item *hi;
+ struct memdebug_heap_item *hi, *next;
- for (hi = heap_head; hi; hi = hi->next) {
+ for (hi = heap_head; hi; hi = next) {
if (hi->addr)
free(hi->addr);
+ next = hi->next;
free(hi);
}
cause I don't have access to any. Has been compile tested and the translations have been tested on a locally modified version of e1000e. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r--include/linux/mdio.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h