]> 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)
commit36bd23b8cb92f0cd20925bc5fd011c101d3e1250
tree3819082e853fffcae791d12616967964ca56733a
parent74b3a277d02a0e1ae18d25ea68d595d7ee653219
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