Skip to content
Commit 129dcac0 authored by Zhang Changzhong's avatar Zhang Changzhong Committed by Liwei Song
Browse files

ice: switch: fix potential memleak in ice_add_adv_recipe()

commit 4a606ce6 upstream.

When ice_add_special_words() fails, the 'rm' is not released, which will
lead to a memory leak. Fix this up by going to 'err_unroll' label.

Compile tested only.

Fixes: 8b032a55

 ("ice: low level support for tunnels")
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Tested-by: default avatarSujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent ef7528ba
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