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: NDavid Woodhouse <David.Woodhouse@intel.com> Signed-off-by: NJason Cooper <jason@lakedaemon.net> Signed-off-by: NSebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: NJason Cooper <jason@lakedaemon.net> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
Showing
想要评论请 注册 或 登录