]> git.hungrycats.org Git - linux/commit
[PATCH] NFS/RPC modprobe -r sunrpc causes an oops
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Jan 2004 11:17:23 +0000 (03:17 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 20 Jan 2004 11:17:23 +0000 (03:17 -0800)
commitd54eb7239f5dcc41157ad80d2e186f68ed1e54a0
treeff570243fb407941558d7137f2b95eb62ca7cdd2
parent31e43b1bf6175e60f2f08bc3619e7724133c627d
[PATCH] NFS/RPC modprobe -r sunrpc causes an oops

From: Steve Dickson <SteveD@redhat.com>

Here is a patch for the 2.6.1 kernel that fixes an oops that occurs when
the sunrpc module is unloaded.

The problem was the RPC cache_register() call was not saving entry pointers
to the procfs entries it was creating.  So when it came time to dismantle
the entires, a BUG_ON() was tripped in remove_proc_entry() since the tree
was not broken down completely.

(acked by neilb)
include/linux/sunrpc/cache.h
net/sunrpc/cache.c