diff options
author | Hannes Reinecke <[email protected]> | 2022-05-23 14:02:44 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-05-23 23:24:10 -0400 |
commit | f9f0a46141e2e39bedb4779c88380d1b5f018c14 (patch) | |
tree | 8b6b498cfdb4c533a5cca2014a94e57a7271aed7 /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 7ad36c8b2b80c8d296478f9854135d379cc63551 (diff) |
scsi: myrb: Fix up null pointer access on myrb_cleanup()
When myrb_probe() fails the callback might not be set, so we need to
validate the 'disable_intr' callback in myrb_cleanup() to not cause a null
pointer exception. And while at it do not call myrb_cleanup() if we cannot
enable the PCI device at all.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Zheyu Ma <[email protected]>
Tested-by: Zheyu Ma <[email protected]>
Signed-off-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions