Commit 3b55a9e
bpf: Clear user buf when bpf_d_path failed
The bpf_d_path() function may fail. If it does,
clear the user buf, like bpf_probe_read etc.
Signed-off-by: Tao Chen <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent 517b088 commit 3b55a9e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
| 919 | + | |
| 920 | + | |
920 | 921 | | |
| 922 | + | |
921 | 923 | | |
922 | 924 | | |
923 | 925 | | |
| 926 | + | |
924 | 927 | | |
925 | 928 | | |
926 | 929 | | |
| |||
0 commit comments