Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pinctrl: lpc18xx: ensure ngroups is initialized at correct place
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 <[email protected]> Reviewed-by: Joachim Eastwood <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
- Loading branch information