FROMLIST: staging: android: ashmem: remove usage of list iterator after the loop...
[platform/kernel/linux-rpi.git] / drivers / of / base.c
index 8d93cb6..b0ad8fc 100644 (file)
@@ -1464,6 +1464,7 @@ int of_parse_phandle_with_args_map(const struct device_node *np,
                out_args->np = new;
                of_node_put(cur);
                cur = new;
+               new = NULL;
        }
 put:
        of_node_put(cur);