1
0
Fork 0
remarkable-linux/fs/ncpfs
Al Viro 906e5a6e6e ncpfs: fix a braino in OOM handling in ncp_fill_cache()
[ Upstream commit 803c00123a ]

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 5e993e25 ("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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-22 11:10:30 -04:00
..
Kconfig fs/Kconfig: move the rest of ncpfs out 2009-01-22 13:16:01 +03:00
Makefile fs: change to new flag variable 2011-03-17 14:02:57 +01:00
dir.c ncpfs: fix a braino in OOM handling in ncp_fill_cache() 2016-03-22 11:10:30 -04:00
file.c switch generic_write_checks() to iocb and iter 2015-04-11 22:30:21 -04:00
getopt.c fs/ncpfs/getopt.c: replace simple_strtoul by kstrtoul 2014-06-04 16:54:21 -07:00
getopt.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
ioctl.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
mmap.c ncpfs: use file_inode() 2014-11-19 13:01:25 -05:00
ncp_fs.h ncpfs: remove now unused PRINTK macro 2014-04-08 16:48:52 -07:00
ncp_fs_i.h ncpfs: get rid of d_validate() nonsense 2015-01-25 23:16:26 -05:00
ncp_fs_sb.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-04-12 17:31:22 -07:00
ncplib_kernel.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
ncplib_kernel.h ncpfs: switch to ->read_iter/->write_iter 2015-04-11 22:28:52 -04:00
ncpsign_kernel.c move internal-only parts of ncpfs headers to fs/ncpfs 2011-01-12 20:03:43 -05:00
ncpsign_kernel.h move internal-only parts of ncpfs headers to fs/ncpfs 2011-01-12 20:03:43 -05:00
sock.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-04-12 17:31:22 -07:00
symlink.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00