diff options
| author | Stefan Wahren <stefan.wahren@i2se.com> | 2015-12-21 00:44:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:14 +0200 |
| commit | 88b8fdff2e7c74862b19a10bd9e0ba8ed97f5105 (patch) | |
| tree | 619785dbe9c5811786c8fb9e7ce1a9a5a4f84d6d /include/linux/elfnote.h | |
| parent | 0044588a761e2a93cb6e6e2bbe9bbef97978a3fe (diff) | |
pinctrl: bcm2835: Fix memory leak in error path
commit 53653c6b91750debba6dc4503003c851257fd340 upstream.
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@i2se.com>
Fixes: e1b2dc70cd5b ("pinctrl: add bcm2835 driver")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/elfnote.h')
0 files changed, 0 insertions, 0 deletions
