Skip to content
Commit 4fad22a1 authored by Yuan Can's avatar Yuan Can Committed by Paolo Abeni
Browse files

dpaa2-switch: Fix memory leak in dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove()

The cmd_buff needs to be freed when error happened in
dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove().

Fixes: 1110318d

 ("dpaa2-switch: add tc flower hardware offload on ingress traffic")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221205061515.115012-1-yuancan@huawei.com
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 063a932b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment