]> git.baikalelectronics.ru Git - kernel.git/commit
path_openat(): fix double fput()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2015 02:53:15 +0000 (22:53 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2015 04:12:48 +0000 (00:12 -0400)
commit740e7ed07bced33993c9c4ec7f8ce5d1d119bd37
tree3819082e853fffcae791d12616967964ca56733a
parentb4d5e74967e0d18aa83d6746d971ad5434509df3
path_openat(): fix double fput()

path_openat() jumps to the wrong place after do_tmpfile() - it has
already done path_cleanup() (as part of path_lookupat() called by
do_tmpfile()), so doing that again can lead to double fput().

Cc: stable@vger.kernel.org # v3.11+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c