summaryrefslogtreecommitdiff
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2007-05-08 07:25:47 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 18:15:02 (GMT)
commit59cd0cbc75367b82f704f63b104117462275060d (patch)
tree695c4f7af4cf840a7e22e7767e1b5705e0b6d8d1 /drivers/net/gianfar.c
parent7695650a924a6859910c8c19dfa43b4d08224d66 (diff)
downloadlinux-59cd0cbc75367b82f704f63b104117462275060d.tar.xz
Fix race between proc_readdir and remove_proc_entry
Fix the following race: proc_readdir remove_proc_entry ============ ================= spin_lock(&proc_subdir_lock); [choose PDE to start filldir from] spin_unlock(&proc_subdir_lock); spin_lock(&proc_subdir_lock); [find PDE] [free PDE, refcount is 0] spin_unlock(&proc_subdir_lock); /* boom */ if (filldir(dirent, de->name, ... [de_put on error path --adobriyan] Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/gianfar.c')
0 files changed, 0 insertions, 0 deletions