We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9391ecf commit 7583a73Copy full SHA for 7583a73
kernel/trace/trace.c
@@ -710,7 +710,10 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
710
/* copy the current bits to the new max */
711
ret = trace_pid_list_first(filtered_pids, &pid);
712
while (!ret) {
713
- trace_pid_list_set(pid_list, pid);
+ ret = trace_pid_list_set(pid_list, pid);
714
+ if (ret < 0)
715
+ goto out;
716
+
717
ret = trace_pid_list_next(filtered_pids, pid + 1, &pid);
718
nr_pids++;
719
}
@@ -747,6 +750,7 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
747
750
trace_parser_clear(&parser);
748
751
ret = 0;
749
752
753
+ out:
754
trace_parser_put(&parser);
755
756
if (ret < 0) {
0 commit comments