Skip to content
Commit bf4a64b9 authored by Yuran Pereira's avatar Yuran Pereira Committed by Alexei Starovoitov
Browse files

selftests/bpf: Add malloc failure checks in bpf_iter



Since some malloc calls in bpf_iter may at times fail,
this patch adds the appropriate fail checks, and ensures that
any previously allocated resource is appropriately destroyed
before returning the function.

Signed-off-by: default avatarYuran Pereira <yuran.pereira@hotmail.com>
Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
Acked-by: default avatarKui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/DB3PR10MB6835F0ECA792265FA41FC39BE8A3A@DB3PR10MB6835.EURPRD10.PROD.OUTLOOK.COM


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent fac85c29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment