[PATCH] pinctrl: bcm2835: Fix memory leak in error path
Eric Anholt
eric at anholt.net
Mon Dec 21 14:41:41 PST 2015
Stefan Wahren <stefan.wahren at i2se.com> writes:
> 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")
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20151221/dfe30daf/attachment.sig>
More information about the linux-rpi-kernel
mailing list