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)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Nov 2013 04:04:37 +0000 (12:04 +0800)
commit7058de4ba0b1e32cc6e4706d47e57ae272042a1b
tree70fd4119a769fd4b5705aea7988370327459e7da
parente978099cb6156018068101a60b3c6478b341ee20
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