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
Kirill Smelkov
linux
Commits
1bcb275d
Commit
1bcb275d
authored
Oct 06, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/core/dev.c: Print lethal dev/protocol errors with KERN_CRIT.
parent
254addf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/core/dev.c
net/core/dev.c
+4
-4
No files found.
net/core/dev.c
View file @
1bcb275d
...
@@ -904,8 +904,8 @@ void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
...
@@ -904,8 +904,8 @@ void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
if
(
skb2
->
nh
.
raw
<
skb2
->
data
||
if
(
skb2
->
nh
.
raw
<
skb2
->
data
||
skb2
->
nh
.
raw
>
skb2
->
tail
)
{
skb2
->
nh
.
raw
>
skb2
->
tail
)
{
if
(
net_ratelimit
())
if
(
net_ratelimit
())
printk
(
KERN_
DEBUG
"protocol %04x is "
printk
(
KERN_
CRIT
"protocol %04x is "
"buggy, dev %s
\n
"
,
"buggy, dev %s
\n
"
,
skb2
->
protocol
,
dev
->
name
);
skb2
->
protocol
,
dev
->
name
);
skb2
->
nh
.
raw
=
skb2
->
data
;
skb2
->
nh
.
raw
=
skb2
->
data
;
}
}
...
@@ -1062,14 +1062,14 @@ int dev_queue_xmit(struct sk_buff *skb)
...
@@ -1062,14 +1062,14 @@ int dev_queue_xmit(struct sk_buff *skb)
dev
->
xmit_lock_owner
=
-
1
;
dev
->
xmit_lock_owner
=
-
1
;
spin_unlock_bh
(
&
dev
->
xmit_lock
);
spin_unlock_bh
(
&
dev
->
xmit_lock
);
if
(
net_ratelimit
())
if
(
net_ratelimit
())
printk
(
KERN_
DEBUG
"Virtual device %s asks to "
printk
(
KERN_
CRIT
"Virtual device %s asks to "
"queue packet!
\n
"
,
dev
->
name
);
"queue packet!
\n
"
,
dev
->
name
);
goto
out_enetdown
;
goto
out_enetdown
;
}
else
{
}
else
{
/* Recursion is detected! It is possible,
/* Recursion is detected! It is possible,
* unfortunately */
* unfortunately */
if
(
net_ratelimit
())
if
(
net_ratelimit
())
printk
(
KERN_
DEBUG
"Dead loop on virtual device "
printk
(
KERN_
CRIT
"Dead loop on virtual device "
"%s, fix it urgently!
\n
"
,
dev
->
name
);
"%s, fix it urgently!
\n
"
,
dev
->
name
);
}
}
}
}
...
...
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