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 f15ebc8 commit 88525acCopy full SHA for 88525ac
kernel/trace/trace.c
@@ -787,7 +787,10 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
787
/* copy the current bits to the new max */
788
ret = trace_pid_list_first(filtered_pids, &pid);
789
while (!ret) {
790
- trace_pid_list_set(pid_list, pid);
+ ret = trace_pid_list_set(pid_list, pid);
791
+ if (ret < 0)
792
+ goto out;
793
+
794
ret = trace_pid_list_next(filtered_pids, pid + 1, &pid);
795
nr_pids++;
796
}
@@ -824,6 +827,7 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
824
827
trace_parser_clear(&parser);
825
828
ret = 0;
826
829
830
+ out:
831
trace_parser_put(&parser);
832
833
if (ret < 0) {
0 commit comments