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
55e5a94b
Commit
55e5a94b
authored
Aug 20, 2003
by
Jeroen Vreeken
Committed by
David S. Miller
Aug 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETROM]: Update wrt. ax25_cb refcounting changes.
parent
0a026723
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/netrom/nr_route.c
net/netrom/nr_route.c
+2
-2
No files found.
net/netrom/nr_route.c
View file @
55e5a94b
...
@@ -735,7 +735,7 @@ void nr_link_failed(ax25_cb *ax25, int reason)
...
@@ -735,7 +735,7 @@ void nr_link_failed(ax25_cb *ax25, int reason)
if
(
nr_neigh
==
NULL
)
return
;
if
(
nr_neigh
==
NULL
)
return
;
nr_neigh
->
ax25
=
NULL
;
nr_neigh
->
ax25
=
NULL
;
//
ax25_cb_put(ax25);
ax25_cb_put
(
ax25
);
if
(
++
nr_neigh
->
failed
<
sysctl_netrom_link_fails_count
)
{
if
(
++
nr_neigh
->
failed
<
sysctl_netrom_link_fails_count
)
{
nr_neigh_put
(
nr_neigh
);
nr_neigh_put
(
nr_neigh
);
...
@@ -829,7 +829,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
...
@@ -829,7 +829,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
ax25s
=
ax25_send_frame
(
skb
,
256
,
(
ax25_address
*
)
dev
->
dev_addr
,
&
nr_neigh
->
callsign
,
nr_neigh
->
digipeat
,
nr_neigh
->
dev
);
ax25s
=
ax25_send_frame
(
skb
,
256
,
(
ax25_address
*
)
dev
->
dev_addr
,
&
nr_neigh
->
callsign
,
nr_neigh
->
digipeat
,
nr_neigh
->
dev
);
if
(
nr_neigh
->
ax25
&&
ax25s
)
{
if
(
nr_neigh
->
ax25
&&
ax25s
)
{
/* We were already holding this ax25_cb */
/* We were already holding this ax25_cb */
//
ax25_cb_put(ax25s);
ax25_cb_put
(
ax25s
);
}
}
nr_neigh
->
ax25
=
ax25s
;
nr_neigh
->
ax25
=
ax25s
;
...
...
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