From: Jack Steiner Date: Wed, 16 Dec 2009 00:48:06 +0000 (-0800) Subject: gru: fix bug in module unload X-Git-Tag: firefly_0821_release~9833^2~3651^2~33 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2965d68b6775290218ff2a040e64c8b40556280;p=firefly-linux-kernel-4.4.55.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); } }