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)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Apr 2016 13:52:46 +0000 (15:52 +0200)
commit71324fdc72ef0163e57631aa814a9a81e9e4770b
tree6411a66772b992419c542009b636947f53073624
parent3024f920eb5f6e60453d035f26ec963c7126f517
pinctrl: exynos5440: Use off-stack memory for pinctrl_gpio_range

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")
Cc: stable@vger.kernel.org
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>
drivers/pinctrl/samsung/pinctrl-exynos5440.c