lkml.org 
[lkml]   [2022]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next 0/2] net: sched: remove redundant resource cleanup when init() fails
Date
qdisc_create() calls .init() to initialize qdisc. If the initialization
fails, qdisc_create() will call .destroy() to release resources.

Zhengchao Shao (2):
net: sched: fq_codel: remove redundant resource cleanup in
fq_codel_init()
net: sched: htb: remove redundant resource cleanup in htb_init()

net/sched/sch_fq_codel.c | 17 ++++-------------
net/sched/sch_htb.c | 36 +++++++++---------------------------
2 files changed, 13 insertions(+), 40 deletions(-)

--
2.17.1

\
 
 \ /
  Last update: 2022-08-30 02:55    [W:0.046 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site