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:
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,