[Patch 08/29] GRU - fix bug in module unload

From: steiner
Date: Tue Nov 24 2009 - 10:08:01 EST


From: Jack Steiner <steiner@xxxxxxx>

Fix bug in module unload. Previous code was not correctly
deleting the files in /proc.

Signed-off-by: Jack Steiner <steiner@xxxxxxx>


---
drivers/misc/sgi-gru/gruprocfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/misc/sgi-gru/gruprocfs.c
===================================================================
--- linux.orig/drivers/misc/sgi-gru/gruprocfs.c 2009-11-20 09:32:29.000000000 -0600
+++ linux/drivers/misc/sgi-gru/gruprocfs.c 2009-11-20 09:32:30.000000000 -0600
@@ -351,7 +351,7 @@ static void delete_proc_files(void)
for (p = proc_files; p->name; p++)
if (p->entry)
remove_proc_entry(p->name, proc_gru);
- remove_proc_entry("gru", NULL);
+ remove_proc_entry("gru", proc_gru->parent);
}
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/