aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-01-19 20:00:06 +0800
committerUlf Hansson <[email protected]>2022-01-24 15:37:13 +0100
commit4d315357b3d6c315a7260420c6c6fc076e58d14b (patch)
treedadb05ce322add2639743003eababc517314dc6c /net/unix/sysctl_net_unix.c
parent40c67c291a93f8846c4a972c9ef1b7ba4544c8d0 (diff)
mmc: sh_mmcif: Check for null res pointer
If there is no suitable resource, platform_get_resource() will return NULL. Therefore in order to avoid the dereference of the NULL pointer, it should be better to check the 'res'. Signed-off-by: Jiasheng Jiang <[email protected]> Cc: [email protected] # v5.16+ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions