aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorJoe Hattori <[email protected]>2024-11-21 11:34:29 +0900
committerGreg Kroah-Hartman <[email protected]>2024-12-04 16:25:46 +0100
commit645d56e4cc74e953284809d096532c1955918a28 (patch)
tree4258bdefbf725d23b39b34eb6872c5d39bf14a9c /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent0d2ada05227881f3d0722ca2364e3f7a860a301f (diff)
usb: typec: anx7411: fix fwnode_handle reference leak
An fwnode_handle and usb_role_switch are obtained with an incremented refcount in anx7411_typec_port_probe(), however the refcounts are not decremented in the error path. The fwnode_handle is also not decremented in the .remove() function. Therefore, call fwnode_handle_put() and usb_role_switch_put() accordingly. Fixes: fe6d8a9c8e64 ("usb: typec: anx7411: Add Analogix PD ANX7411 support") Cc: [email protected] Signed-off-by: Joe Hattori <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions