Re: [PATCH V2] pinctrl: mvebu: prevent walking off the end of grouparray

From: David Woodhouse
Date: Thu Mar 14 2013 - 06:30:04 EST


On Wed, 2013-03-13 at 17:48 +0000, Jason Cooper wrote:
> From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxx>
> Signed-off-by: Jason Cooper <jason@xxxxxxxxxxxxxx>
> ---
> Changes from v1:
> - correct typo (s/ nt / int /) I should've caught before sending.
>
> David, please double check that this is as you intended. I had to hand-jam it
> in due to some peculiarities on my side.

Looks fine; thanks.

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@xxxxxxxxx Intel Corporation

Attachment: smime.p7s
Description: S/MIME cryptographic signature