usb: dwc3: qcom: Add missing DWC3 OF node refcount decrement
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Fri, 12 Feb 2021 20:55:19 +0000 (23:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:29 +0000 (17:06 +0100)
commit10551fbc5517b67758fc2600faa9d5c4eb4d30a7
tree20a94a93be3cc7f8a80203f7b036f2f817a7d016
parent32ad0eb74eac53766b65ec377c77af10bee765fc
usb: dwc3: qcom: Add missing DWC3 OF node refcount decrement

commit 1cffb1c66499a9db9a735473778abf8427d16287 upstream.

of_get_child_by_name() increments the reference counter of the OF node it
managed to find. So after the code is done using the device node, the
refcount must be decremented. Add missing of_node_put() invocation then
to the dwc3_qcom_of_register_core() method, since DWC3 OF node is being
used only there.

Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20210212205521.14280-1-Sergey.Semin@baikalelectronics.ru
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c