Re: [PATCH bpf-next v2 2/4] selftests/bpf/sockopt: Add a null pointer check for the run_test

2024-05-10 Thread Muhammad Usama Anjum
On 5/10/24 2:58 PM, kunwu.c...@linux.dev wrote: > From: Kunwu Chan > > There is a 'malloc' call, which can be unsuccessful. > Add the malloc failure checking to avoid possible null > dereference and give more information > about test fail reasons. > > Signed-off-by: Kunwu Chan LGTM Reviewed-by:

[PATCH bpf-next v2 2/4] selftests/bpf/sockopt: Add a null pointer check for the run_test

2024-05-10 Thread kunwu . chan
From: Kunwu Chan There is a 'malloc' call, which can be unsuccessful. Add the malloc failure checking to avoid possible null dereference and give more information about test fail reasons. Signed-off-by: Kunwu Chan --- tools/testing/selftests/bpf/prog_tests/sockopt.c | 6 ++ 1 file changed,