diff options
| author | Charles Han <[email protected]> | 2024-11-14 09:18:22 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-11-18 10:45:06 +0000 |
| commit | 050b23d081da0f29474de043e9538c1f7a351b3b (patch) | |
| tree | c5ebf806870b40776ea074731836d3366ab40f00 /net/unix/af_unix.c | |
| parent | tools: gpio: Fix several incorrect format specifiers (diff) | |
| download | kernel-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
