# Pastebin 5BkxsOOC diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 70992103c07d..a45d0ef65a5e 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -634,6 +634,11 @@ static void __init of_unittest_parse_phandle_with_args_map(void) i, args.np->full_name, rc); } + memset(&args, 0, sizeof(args)); + rc = of_parse_phandle_with_args_map(np, "phandle-list", + "phandle", -1, &args); + unittest(rc == -ENOENT, "out of bounds index, expected:%i got:%i\n", -ENOENT, rc); + /* Check for missing list property */ memset(&args, 0, sizeof(args)); rc = of_parse_phandle_with_args_map(np, "phandle-list-missing",