Skip to content

Commit de737bb

Browse files
committed
of: unittest: Fix of_count_phandle_with_args() expected value message
JIRA: https://issues.redhat.com/browse/RHEL-37072 CVE: CVE-2023-52679 commit 716089b Author: Geert Uytterhoeven <geert+renesas@glider.be> Date: Thu Jan 11 09:50:25 2024 +0100 of: unittest: Fix of_count_phandle_with_args() expected value message The expected result value for the call to of_count_phandle_with_args() was updated from 7 to 8, but the accompanying error message was forgotten. Fixes: 4dde835 ("of: Fix double free in of_parse_phandle_with_args_map") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20240111085025.2073894-1-geert+renesas@glider.be Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 6c3b8a7 commit de737bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/unittest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
566566
}
567567

568568
rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells");
569-
unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 7\n", rc);
569+
unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 8\n", rc);
570570

571571
for (i = 0; i < 9; i++) {
572572
bool passed = true;

0 commit comments

Comments
 (0)