diff options
author | Charles Han <[email protected]> | 2024-11-14 17:18:22 +0800 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2024-11-18 11:45:06 +0100 |
commit | 050b23d081da0f29474de043e9538c1f7a351b3b (patch) | |
tree | c5ebf806870b40776ea074731836d3366ab40f00 /tools/perf/scripts/python/libxed.py | |
parent | b6621b1d4b1d0459ba6b49c0bc498c352ac115ab (diff) |
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 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions