Commit 803c0012 authored by Al Viro's avatar Al Viro
Browse files

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 5e993e25

 ("ncpfs: get rid of d_validate() nonsense")
Fucked-up-by: default avatarAl Viro <>
Cc: # v3.19
Signed-off-by: default avatarAl Viro <>
parent a528aca7
......@@ -633,7 +633,7 @@ ncp_fill_cache(struct file *file, struct dir_context *ctx,
} else {
NCP_FINFO(inode)->flags &= ~NCPI_DIR_CACHE;
NCP_FINFO(dir)->flags &= ~NCPI_DIR_CACHE;
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment