From: Jack Steiner Date: Wed, 16 Dec 2009 00:48:06 +0000 (-0800) Subject: gru: fix bug in module unload X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2965d68b6775290218ff2a040e64c8b40556280;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gru: fix bug in module unload Fix bug in module unload. Previous code was not correctly deleting the files in /proc. Signed-off-by: Jack Steiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/misc/sgi-gru/gruprocfs.c b/drivers/misc/sgi-gru/gruprocfs.c index a8a2e760cca3..4f6fc11a2637 100644 --- a/drivers/misc/sgi-gru/gruprocfs.c +++ b/drivers/misc/sgi-gru/gruprocfs.c @@ -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); } }