summaryrefslogtreecommitdiff
path: root/lib/flex_array.c
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-01-27 14:00:03 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-16 12:44:51 +0100
commit67375f607e16b82b8a810b4f47bf545796958348 (patch)
treec66a3b24052a277592bbb144d23edc4b05715ed5 /lib/flex_array.c
parentccf69d5d4c748ad80e72320558cdf659413f8a78 (diff)
usb: ulpi: Call of_node_put correctly
commit 0a907ee9d95e3ac35eb023d71f29eae0aaa52d1b upstream. 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 <stable@vger.kernel.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Sean Anderson <sean.anderson@seco.com> Link: https://lore.kernel.org/r/20220127190004.1446909-3-sean.anderson@seco.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions