aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2020-08-27 10:40:41 -0700
committerDavid S. Miller <[email protected]>2020-08-28 07:16:46 -0700
commit5438dd45831ee33869779bd1919b05816ae4dbc9 (patch)
treee7bb813ce5fe1d1d6a495591405d775d41e768d0 /lib/test_overflow.c
parentf272285f6abb9178d029375599626baf3d5f4e8a (diff)
net_sched: fix error path in red_init()
When ->init() fails, ->destroy() is called to clean up. So it is unnecessary to clean up in red_init(), and it would cause some refcount underflow. Fixes: aee9caa03fc3 ("net: sched: sch_red: Add qevents "early_drop" and "mark"") Reported-and-tested-by: [email protected] Reported-and-tested-by: [email protected] Cc: Petr Machata <[email protected]> Signed-off-by: Cong Wang <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions