]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mvebu: prevent walking off the end of group array
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 16 Mar 2013 11:44:32 +0000 (12:44 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 22:36:17 +0000 (23:36 +0100)
commitf2227aec4a88063b85b5e42b889bf619e8816599
tree43d78fe1b6f8eb754005153bcc8d694198789ffc
parent9b2bd1dfa7b9a0220f61952aa03ffcdcc95d40c3
pinctrl: mvebu: prevent walking off the end of group array

While investigating (ab)use of krealloc, David found this bug.  It's
unlikely to occur, but now we detect the condition and error out
appropriately.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-mvebu.c