pinctrl: dynamically alloc temp array when parsing dt pinconf options
authorHeiko Stübner <heiko@sntech.de>
Fri, 14 Jun 2013 15:43:55 +0000 (17:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 16:18:31 +0000 (18:18 +0200)
commit6abab2d4bec982bcefbe99201ddee5f25227daf4
treebc70b4fb53bb9154d3c44c6b592f25a78274e536
parente4a8844c04c00a1a64c6779692e1baff3851c1f7
pinctrl: dynamically alloc temp array when parsing dt pinconf options

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@ideasonboard.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c