aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
diff options
context:
space:
mode:
authorYongzhi Liu <hyperlyzcs@gmail.com>2024-05-23 20:14:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-04 18:08:39 +0200
commit086c6cbcc563c81d55257f9b27e14faf1d0963d3 (patch)
treec16d5a724ecda82cb024b7cffe4bb00136417e31 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c
parent73fedc31fed38cb6039fd8a7efea1774143b68b0 (diff)
misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function gp_auxiliary_device_release() calls ida_free() and kfree(aux_device_wrapper) to free memory. We should't call them again in the error handling path. Fix this by skipping the redundant cleanup functions. Fixes: 393fc2f5948f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.") Signed-off-by: Yongzhi Liu <hyperlyzcs@gmail.com> Link: https://lore.kernel.org/r/20240523121434.21855-3-hyperlyzcs@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions