usb: gadget: aspeed: add missing of_node_put
authorkernel test robot <lkp@intel.com>
Thu, 21 Jan 2021 18:12:54 +0000 (19:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jan 2021 14:23:50 +0000 (15:23 +0100)
commita55a9a4c5c6253f6e4dea268af728664ac997790
treedcd37c1eedddfc5b99dd263d0868fcf404f8c4e8
parentd8c6edfa3f4ee0d45d7ce5ef18d1245b78774b9d
usb: gadget: aspeed: add missing of_node_put

Breaking out of for_each_child_of_node requires a put on the
child value.

Generated by: scripts/coccinelle/iterators/for_each_child.cocci

Fixes: 82c2d81361ec ("coccinelle: iterators: Add for_each_child.cocci script")
CC: Sumera Priyadarsini <sylphrenadin@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2101211907060.14700@hadrien
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/aspeed-vhub/hub.c