]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
autofs4: fix waitq locking
authorIan Kent <raven@themaw.net>
Thu, 24 Jul 2008 04:30:17 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:32 +0000 (10:47 -0700)
commit5a11d4d0ee1ff284271f7265929d07ea4a1168a6
tree4b9b76486afa5d9fc29216df069c5a557e09011a
parent70b52a0a5005ce6a0ceec56e97222437a0ba7506
autofs4: fix waitq locking

The autofs4_catatonic_mode() function accesses the wait queue without any
locking but can be called at any time.  This could lead to a possible
double free of the name field of the wait and a double fput of the daemon
communication pipe or an fput of a NULL file pointer.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/inode.c
fs/autofs4/waitq.c