aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2022-01-27 14:00:03 -0500
committerGreg Kroah-Hartman <[email protected]>2022-01-31 14:11:20 +0100
commit0a907ee9d95e3ac35eb023d71f29eae0aaa52d1b (patch)
tree2d688408d9b8d8f05828365c3481fb0f6bc78f86 /scripts/gdb/linux/modules.py
parent092f45b13e51666fe8ecbf2d6cd247aa7e6c1f74 (diff)
usb: ulpi: Call of_node_put correctly
of_node_put should always be called on device nodes gotten from of_get_*. Additionally, it should only be called after there are no remaining users. To address the first issue, call of_node_put if later steps in ulpi_register fail. To address the latter, call put_device if device_register fails, which will call ulpi_dev_release if necessary. Fixes: ef6a7bcfb01c ("usb: ulpi: Support device discovery via DT") Cc: stable <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Sean Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions