[PATCH] pinctrl: bcm2835: Fix memory leak in error path
Linus Walleij
linus.walleij at linaro.org
Tue Dec 22 04:51:17 PST 2015
On Mon, Dec 21, 2015 at 1:44 AM, Stefan Wahren <stefan.wahren at i2se.com> wrote:
> In case of an invalid pin value bcm2835_pctl_dt_node_to_map()
> would leak the pull configs of already assigned pins.
> So avoid this by calling the free map function in error case.
>
> Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
> Fixes: e1b2dc70cd5b ("pinctrl: add bcm2835 driver")
Patch applied with Eric's Review tag.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list