]> git.baikalelectronics.ru Git - kernel.git/commit
ncpfs: fix a braino in OOM handling in ncp_fill_cache()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 03:17:07 +0000 (22:17 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 03:25:16 +0000 (22:25 -0500)
commitd5da41e22d365291f0b22a1786be9306e5d206f6
tree71e816a7d78e5dc422917e9e13f47dfc6a5bfcc6
parent51c44391ef5cfb4c8385a1a5821d7657f145c9bd
ncpfs: fix a braino in OOM handling in ncp_fill_cache()

Failing to allocate an inode for child means that cache for *parent* is
incompletely populated.  So it's parent directory inode ('dir') that
needs NCPI_DIR_CACHE flag removed, *not* the child inode ('inode', which
is what we'd failed to allocate in the first place).

Fucked-up-in: commit 2b2ca2d6 ("ncpfs: get rid of d_validate() nonsense")
Fucked-up-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@vger.kernel.org # v3.19
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/dir.c