Re: [PATCH] selftests/bpf: Fix incorrect parameters in NULL pointer checking

2024-08-23 Thread Hao Ge
-0700, Yonghong Song wrote: On 8/19/24 7:34 PM, Hao Ge wrote: From: Hao Ge Smatch reported the following warning: ./tools/testing/selftests/bpf/testing_helpers.c:455 get_xlated_program() warn: variable dereferenced before check 'buf' (see line 454) It seems correct,so le

Re: [PATCH] selftests/bpf: Fix incorrect parameters in NULL pointer checking

2024-08-23 Thread Hao Ge
Hi Yonghong Thank you very much for taking the time to review my patch. On 8/22/24 05:03, Yonghong Song wrote: On 8/19/24 7:34 PM, Hao Ge wrote: From: Hao Ge Smatch reported the following warning: ./tools/testing/selftests/bpf/testing_helpers.c:455 get_xlated_program() warn

Re: [PATCH] selftests/bpf: Fix incorrect parameters in NULL pointer checking

2024-08-19 Thread Hao Ge
this patch as it is identical to the previous one. I sincerely apologize for wasting everyone's time On 8/20/24 10:36, Hao Ge wrote: From: Hao Ge Smatch reported the following warning: ./tools/testing/selftests/bpf/testing_helpers.c:455 get_xlated_program() warn: variable dereferen

[PATCH] selftests/bpf: Fix incorrect parameters in NULL pointer checking

2024-08-19 Thread Hao Ge
From: Hao Ge Smatch reported the following warning: ./tools/testing/selftests/bpf/testing_helpers.c:455 get_xlated_program() warn: variable dereferenced before check 'buf' (see line 454) It seems correct,so let's modify it based on it's suggestion. Actually

[PATCH] selftests/bpf: Fix incorrect parameters in NULL pointer checking

2024-08-19 Thread Hao Ge
From: Hao Ge Smatch reported the following warning: ./tools/testing/selftests/bpf/testing_helpers.c:455 get_xlated_program() warn: variable dereferenced before check 'buf' (see line 454) It seems correct,so let's modify it based on it's suggestion. Actually