aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorBinyi Han <[email protected]>2022-09-04 00:46:47 -0700
committerAndrew Morton <[email protected]>2022-09-11 16:22:31 -0700
commit4eb5bbde3ccb710d3b85bfb13466612e56393369 (patch)
tree8c2e0c17aba9d747a01b4e8777aa9850e60eb8a6 /lib/mpi/mpi-sub-ui.c
parent36a3b14b5febdaf0e7f70c4ca6f62c8ea75fabfe (diff)
mm: fix dereferencing possible ERR_PTR
Smatch checker complains that 'secretmem_mnt' dereferencing possible ERR_PTR(). Let the function return if 'secretmem_mnt' is ERR_PTR, to avoid deferencing it. Link: https://lkml.kernel.org/r/20220904074647.GA64291@cloud-MacBookPro Fixes: 1507f51255c9f ("mm: introduce memfd_secret system call to create "secret" memory areas") Signed-off-by: Binyi Han <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Ammar Faizi <[email protected]> Cc: Hagen Paul Pfeifer <[email protected]> Cc: James Bottomley <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions