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
1894c622
Commit
1894c622
authored
Oct 26, 2003
by
Andi Kleen
Committed by
David S. Miller
Oct 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Fix oops in ethertap_rx().
parent
cc2c9aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/net/ethertap.c
drivers/net/ethertap.c
+4
-3
No files found.
drivers/net/ethertap.c
View file @
1894c622
...
...
@@ -302,11 +302,12 @@ static __inline__ int ethertap_rx_skb(struct sk_buff *skb, struct net_device *de
static
void
ethertap_rx
(
struct
sock
*
sk
,
int
len
)
{
struct
net_device
*
dev
=
tap_map
[
sk
->
sk_protocol
];
unsigned
unit
=
sk
->
sk_protocol
-
NETLINK_TAPBASE
;
struct
net_device
*
dev
;
struct
sk_buff
*
skb
;
if
(
dev
==
NULL
)
{
printk
(
KERN_CRIT
"ethertap: bad unit
!
\n
"
);
if
(
unit
>=
max_taps
||
(
dev
=
tap_map
[
unit
])
==
NULL
)
{
printk
(
KERN_CRIT
"ethertap: bad unit
%u!
\n
"
,
unit
);
skb_queue_purge
(
&
sk
->
sk_receive_queue
);
return
;
}
...
...
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