-----Original Message----- From: Krzysztof Kozlowski krzysztof.kozlowski@canonical.com Sent: Wednesday, January 12, 2022 5:14 AM To: Tomasz Figa tomasz.figa@gmail.com; Krzysztof Kozlowski krzysztof.kozlowski@canonical.com; Sylwester Nawrocki s.nawrocki@samsung.com; Linus Walleij linus.walleij@linaro.org; Rob Herring robh+dt@kernel.org; linux-arm-kernel@lists.infradead.org; linux- samsung-soc@vger.kernel.org; linux-gpio@vger.kernel.org; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Marek Szyprowski m.szyprowski@samsung.com; Sam Protsenko semen.protsenko@linaro.org; Chanho Park chanho61.park@samsung.com; Alim Akhtar alim.akhtar@gmail.com; stable@vger.kernel.org Subject: [PATCH v2 01/28] pinctrl: samsung: drop pin banks references on error paths
The driver iterates over its devicetree children with for_each_child_of_node() and stores for later found node pointer. This has to be put in error paths to avoid leak during re-probing.
Fixes: ab663789d697 ("pinctrl: samsung: Match pin banks with their device nodes") Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski krzysztof.kozlowski@canonical.com
Reviewed-by: Chanho Park chanho61.park@samsung.com
Best Regards, Chanho Park