[PATCH 4/5] pinctrl: dynamically alloc temp array when parsing dt pinconf options

Linus Walleij linus.walleij at linaro.org
Sun Jun 16 06:31:42 EDT 2013


On Fri, Jun 14, 2013 at 5:43 PM, Heiko Stübner <heiko at sntech.de> wrote:

> Allocating the temorary array in pinconf_generic_parse_dt_config on stack
> might cause problems later on, when the number of options grows over time.
> Therefore also allocate this array dynamically to be on the safe side.
>
> Suggested-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Signed-off-by: Heiko Stuebner <heiko at sntech.de>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list