aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorMichael Chan <[email protected]>2023-11-20 15:43:53 -0800
committerJakub Kicinski <[email protected]>2023-11-21 17:32:47 -0800
commitaa8460bacf49e06d5024bb26c591b5fda91ca6c1 (patch)
tree278215ece91106cfbdb4b61cd9010f0d46929f43 /tools/testing/selftests/bpf/progs/test_autoload.c
parent46e208e70a848a828b35d1e4052313f3b34516d6 (diff)
bnxt_en: The caller of bnxt_alloc_ctx_mem() should always free bp->ctx
bnxt_alloc_ctx_mem() calls bnxt_hwrm_func_backing_store_qcaps() to allocate the memory for bp->ctx. Initialize bp->ctx with the allocated memory and let the caller free it during unwind. The unwind logic is already there, we just need to always set bp->ctx to the allocated memory so the caller will always free it. This simplifies the logic and makes it easier to expand on the backing store logic. Reviewed-by: Pavan Chebbi <[email protected]> Reviewed-by: Somnath Kotur <[email protected]> Signed-off-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions