diff options
author | Jeff Layton <jlayton@kernel.org> | 2020-04-08 15:41:38 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-04-13 20:33:47 +0300 |
commit | 2a575f138d003fff0f4930b5cfae4a1c46343b8f (patch) | |
tree | 81df5b30d09f3b0360216ef0842dc0e26c7c77f7 /fs/fat/namei_msdos.c | |
parent | 8ae0299a4b72f2f9ad2b755da91c6a2beabaee62 (diff) | |
download | linux-2a575f138d003fff0f4930b5cfae4a1c46343b8f.tar.xz |
ceph: fix potential bad pointer deref in async dirops cb's
The new async dirops callback routines can pass ERR_PTR values to
ceph_mdsc_free_path, which could cause an oops. Make ceph_mdsc_free_path
ignore ERR_PTR values. Also, ensure that the pr_warn messages look sane
even if ceph_mdsc_build_path fails.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/fat/namei_msdos.c')
0 files changed, 0 insertions, 0 deletions