aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorCharles Han <[email protected]>2024-11-14 09:18:22 +0000
committerBartosz Golaszewski <[email protected]>2024-11-18 10:45:06 +0000
commit050b23d081da0f29474de043e9538c1f7a351b3b (patch)
treec5ebf806870b40776ea074731836d3366ab40f00 /net/unix/af_unix.c
parenttools: gpio: Fix several incorrect format specifiers (diff)
downloadkernel-050b23d081da0f29474de043e9538c1f7a351b3b.tar.gz
kernel-050b23d081da0f29474de043e9538c1f7a351b3b.zip
gpio: grgpio: Add NULL check in grgpio_probe
devm_kasprintf() can return a NULL pointer on failure,but this returned value in grgpio_probe is not checked. Add NULL check in grgpio_probe, to handle kernel NULL pointer dereference error. Cc: [email protected] Fixes: 7eb6ce2f2723 ("gpio: Convert to using %pOF instead of full_name") Signed-off-by: Charles Han <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions