Thread (3 messages) 3 messages, 3 authors, 2016-03-07

[PATCH] pinctrl: lpc18xx: ensure ngroups is initialized at correct place

From: Linus Walleij <hidden>
Date: 2016-03-07 03:29:05
Also in: linux-gpio, lkml

On Thu, Feb 25, 2016 at 12:32 AM, Colin King [off-list ref] wrote:
From: Colin Ian King <redacted>

The initialization of ngroups is occurring at the end of the
first iteration of the outer loop, which means that the
assignment  pins[ngroups++] = i is potentially indexing into
a region outside of array pins because ngroups is not initialized.
Instead, initialize ngroups in the inner loop before the first
inner loop iteration.

Signed-off-by: Colin Ian King <redacted>
Patch applied with Joachim's review tag.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help