mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
of/selftest: Fix GPIOs selftest to cover the 7th case
The of_gpio_named_count() self test doesn't hit the out-of-range condition even though it is coded. Fix the bug by increasing the for loop range by one. Reported-by: Andreas Larsson <andreas@gaisler.com> Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
c31a0c0522
commit
f7f951c298
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static void __init of_selftest_parse_phandle_with_args(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 7; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
bool passed = true;
|
bool passed = true;
|
||||||
rc = of_parse_phandle_with_args(np, "phandle-list",
|
rc = of_parse_phandle_with_args(np, "phandle-list",
|
||||||
"#phandle-cells", i, &args);
|
"#phandle-cells", i, &args);
|
||||||
|
|
Loading…
Reference in a new issue