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
831f6e64
Commit
831f6e64
authored
Jun 17, 2003
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use in6_dev_hold/__in6_dev_put in net/ipv6/mcast.c
parent
c1a9fe65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
net/ipv6/mcast.c
net/ipv6/mcast.c
+5
-5
No files found.
net/ipv6/mcast.c
View file @
831f6e64
...
...
@@ -930,7 +930,7 @@ static void mld_gq_start_timer(struct inet6_dev *idev)
idev
->
mc_gq_running
=
1
;
if
(
!
mod_timer
(
&
idev
->
mc_gq_timer
,
jiffies
+
tv
+
2
))
atomic_inc
(
&
idev
->
refcnt
);
in6_dev_hold
(
idev
);
}
static
void
mld_ifc_start_timer
(
struct
inet6_dev
*
idev
,
int
delay
)
...
...
@@ -938,7 +938,7 @@ static void mld_ifc_start_timer(struct inet6_dev *idev, int delay)
int
tv
=
net_random
()
%
delay
;
if
(
!
mod_timer
(
&
idev
->
mc_ifc_timer
,
jiffies
+
tv
+
2
))
atomic_inc
(
&
idev
->
refcnt
);
in6_dev_hold
(
idev
);
}
/*
...
...
@@ -1037,7 +1037,7 @@ int igmp6_event_query(struct sk_buff *skb)
/* cancel the interface change timer */
idev
->
mc_ifc_count
=
0
;
if
(
del_timer
(
&
idev
->
mc_ifc_timer
))
atomic_dec
(
&
idev
->
refcnt
);
__in6_dev_put
(
idev
);
/* clear deleted report items */
mld_clear_delrec
(
idev
);
}
else
if
(
len
>=
28
)
{
...
...
@@ -1954,10 +1954,10 @@ void ipv6_mc_down(struct inet6_dev *idev)
read_lock_bh
(
&
idev
->
lock
);
idev
->
mc_ifc_count
=
0
;
if
(
del_timer
(
&
idev
->
mc_ifc_timer
))
atomic_dec
(
&
idev
->
refcnt
);
__in6_dev_put
(
idev
);
idev
->
mc_gq_running
=
0
;
if
(
del_timer
(
&
idev
->
mc_gq_timer
))
atomic_dec
(
&
idev
->
refcnt
);
__in6_dev_put
(
idev
);
for
(
i
=
idev
->
mc_list
;
i
;
i
=
i
->
next
)
igmp6_group_dropped
(
i
);
...
...
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