diff options
author | Davide Caratti <[email protected]> | 2018-11-14 12:17:25 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-11-16 19:53:45 -0800 |
commit | 19ab69107d3ecfb7cd3e38ad262a881be40c01a3 (patch) | |
tree | 82b7b0d49ccbcd5e18f42f2f689ac2e37cf88d65 /net/switchdev/switchdev.c | |
parent | 06bc4d0079ab6a2de86f56703ce1bd13e90b9d9d (diff) |
net/sched: act_pedit: fix memory leak when IDR allocation fails
tcf_idr_check_alloc() can return a negative value, on allocation failures
(-ENOMEM) or IDR exhaustion (-ENOSPC): don't leak keys_ex in these cases.
Fixes: 0190c1d452a9 ("net: sched: atomically check-allocate action")
Signed-off-by: Davide Caratti <[email protected]>
Acked-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions