Commit 4a606ce
ice: switch: fix potential memleak in ice_add_adv_recipe()
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: 8b032a5 ("ice: low level support for tunnels")
Signed-off-by: Zhang Changzhong <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>1 parent 3f4870d commit 4a606ce
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5420 | 5420 | | |
5421 | 5421 | | |
5422 | 5422 | | |
5423 | | - | |
| 5423 | + | |
5424 | 5424 | | |
5425 | 5425 | | |
5426 | 5426 | | |
| |||
0 commit comments