summaryrefslogtreecommitdiff
path: root/drivers/macintosh/Kconfig
diff options
context:
space:
mode:
authorRenaud Lottiaux <renaud.lottiaux@kerlabs.com>2009-06-30 11:41:34 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-07-02 16:41:00 -0700
commitbe5583f5440217b114eb0a0c172d85d92d86dfbb (patch)
tree4ed3f670910d14cd7b3fc68cba9dd1868b7e54ec /drivers/macintosh/Kconfig
parent57b70321247d5decb480a8344c29ab5813901790 (diff)
bsdacct: fix access to invalid filp in acct_on()
commit df279ca8966c3de83105428e3391ab17690802a9 upstream. The file opened in acct_on and freshly stored in the ns->bacct struct can be closed in acct_file_reopen by a concurrent call after we release acct_lock and before we call mntput(file->f_path.mnt). Record file->f_path.mnt in a local variable and use this variable only. Signed-off-by: Renaud Lottiaux <renaud.lottiaux@kerlabs.com> Signed-off-by: Louis Rilling <louis.rilling@kerlabs.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/macintosh/Kconfig')
0 files changed, 0 insertions, 0 deletions