Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
570f6c65
Commit
570f6c65
authored
Apr 10, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCHED]: Some schedulers forget to flush filter list at destroy.
parent
08ec8be5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
net/sched/sch_csz.c
net/sched/sch_csz.c
+8
-0
net/sched/sch_prio.c
net/sched/sch_prio.c
+6
-0
No files found.
net/sched/sch_csz.c
View file @
570f6c65
...
...
@@ -749,6 +749,14 @@ csz_reset(struct Qdisc* sch)
static
void
csz_destroy
(
struct
Qdisc
*
sch
)
{
struct
csz_sched_data
*
q
=
(
struct
csz_sched_data
*
)
sch
->
data
;
struct
tcf_proto
*
tp
;
while
((
tp
=
q
->
filter_list
)
!=
NULL
)
{
q
->
filter_list
=
tp
->
next
;
tp
->
ops
->
destroy
(
tp
);
}
MOD_DEC_USE_COUNT
;
}
...
...
net/sched/sch_prio.c
View file @
570f6c65
...
...
@@ -158,6 +158,12 @@ prio_destroy(struct Qdisc* sch)
{
int
prio
;
struct
prio_sched_data
*
q
=
(
struct
prio_sched_data
*
)
sch
->
data
;
struct
tcf_proto
*
tp
;
while
((
tp
=
q
->
filter_list
)
!=
NULL
)
{
q
->
filter_list
=
tp
->
next
;
tp
->
ops
->
destroy
(
tp
);
}
for
(
prio
=
0
;
prio
<
q
->
bands
;
prio
++
)
{
qdisc_destroy
(
q
->
queues
[
prio
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment