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
046511a4
Commit
046511a4
authored
Jun 07, 2003
by
Martin Schlemmer
Committed by
Linus Torvalds
Jun 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o ethertap: fix struct sock cleanup leftover
parent
402e9d54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/ethertap.c
drivers/net/ethertap.c
+4
-4
No files found.
drivers/net/ethertap.c
View file @
046511a4
...
@@ -292,19 +292,19 @@ static __inline__ int ethertap_rx_skb(struct sk_buff *skb, struct net_device *de
...
@@ -292,19 +292,19 @@ static __inline__ int ethertap_rx_skb(struct sk_buff *skb, struct net_device *de
static
void
ethertap_rx
(
struct
sock
*
sk
,
int
len
)
static
void
ethertap_rx
(
struct
sock
*
sk
,
int
len
)
{
{
struct
net_device
*
dev
=
tap_map
[
sk
->
protocol
];
struct
net_device
*
dev
=
tap_map
[
sk
->
sk_
protocol
];
struct
sk_buff
*
skb
;
struct
sk_buff
*
skb
;
if
(
dev
==
NULL
)
{
if
(
dev
==
NULL
)
{
printk
(
KERN_CRIT
"ethertap: bad unit!
\n
"
);
printk
(
KERN_CRIT
"ethertap: bad unit!
\n
"
);
skb_queue_purge
(
&
sk
->
receive_queue
);
skb_queue_purge
(
&
sk
->
sk_
receive_queue
);
return
;
return
;
}
}
if
(
ethertap_debug
>
3
)
if
(
ethertap_debug
>
3
)
printk
(
"%s: ethertap_rx()
\n
"
,
dev
->
name
);
printk
(
"%s: ethertap_rx()
\n
"
,
dev
->
name
);
while
((
skb
=
skb_dequeue
(
&
sk
->
receive_queue
))
!=
NULL
)
while
((
skb
=
skb_dequeue
(
&
sk
->
sk_
receive_queue
))
!=
NULL
)
ethertap_rx_skb
(
skb
,
dev
);
ethertap_rx_skb
(
skb
,
dev
);
}
}
...
@@ -320,7 +320,7 @@ static int ethertap_close(struct net_device *dev)
...
@@ -320,7 +320,7 @@ static int ethertap_close(struct net_device *dev)
if
(
sk
)
{
if
(
sk
)
{
lp
->
nl
=
NULL
;
lp
->
nl
=
NULL
;
sock_release
(
sk
->
socket
);
sock_release
(
sk
->
s
k_s
ocket
);
}
}
return
0
;
return
0
;
...
...
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