diff options
author | Florian Westphal <[email protected]> | 2020-03-02 21:58:50 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2020-03-04 02:27:18 +0100 |
commit | 2d285f26ecd072800a29c5b71e63437f21ef830a (patch) | |
tree | 3977efbf75e00c7c57bb970e89dd59cf07713926 /drivers/usb/cdns3/cdns3-debug.h | |
parent | ee84f19cbbe9cf7cba2958acb03163fed3ecbb0f (diff) |
netfilter: nf_tables: free flowtable hooks on hook register error
If hook registration fails, the hooks allocated via nft_netdev_hook_alloc
need to be freed.
We can't change the goto label to 'goto 5' -- while it does fix the memleak
it does cause a warning splat from the netfilter core (the hooks were not
registered).
Fixes: 3f0465a9ef02 ("netfilter: nf_tables: dynamically allocate hooks per net_device in flowtables")
Reported-by: [email protected]
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions