diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-08 01:17:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-08 01:17:11 -0400 |
commit | d85b399b64e85a311c09205c675d4ae1c5af6246 (patch) | |
tree | 249253d72c6915fc5523bbb3336a2a932c430245 /fs/fs-writeback.c | |
parent | 888e2b03ef56694290e58bd9ac23f8033bf6369f (diff) | |
download | linux-d85b399b64e85a311c09205c675d4ae1c5af6246.tar.bz2 |
fix proc_fill_cache() in case of d_alloc_parallel() failure
If d_alloc_parallel() returns ERR_PTR(...), we don't want to dput()
that. Small reorganization allows to have all error-in-lookup
cases rejoin the main codepath after dput(child), avoiding the
entire problem.
Spotted-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Fixes: 0168b9e38c42 "procfs: switch instantiate_t to d_splice_alias()"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions