]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: exynos5440: Use off-stack memory for pinctrl_gpio_range
authorAndrew Jeffery <andrew@aj.id.au>
Wed, 20 Apr 2016 01:54:17 +0000 (11:24 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:35 +0000 (18:14 -0700)
commitf4b0dd357f31c3f794ebb171a4ed903c0eee4565
tree296ce6f95df55c7130bf43186d8ec706ce55a092
parentb2cfbf421062a4f27801d6771dfd83c1cd894342
pinctrl: exynos5440: Use off-stack memory for pinctrl_gpio_range

commit 71324fdc72ef0163e57631aa814a9a81e9e4770b upstream.

The range is registered into a linked list which can be referenced
throughout the lifetime of the driver. Ensure the range's memory is useful
for the same lifetime by adding it to the driver's private data structure.

The bug was introduced in the driver's initial commit, which was present in
v3.10.

Fixes: f0b9a7e521fa ("pinctrl: exynos5440: add pinctrl driver for Samsung EXYNOS5440 SoC")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/samsung/pinctrl-exynos5440.c