projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d14a5
)
packet: make packet too small warning match condition
author
Willem de Bruijn
<
[email protected]
>
Thu, 8 Jan 2015 16:29:18 +0000
(11:29 -0500)
committer
David S. Miller
<
[email protected]
>
Mon, 12 Jan 2015 21:00:55 +0000
(16:00 -0500)
The expression in ll_header_truncated() tests less than or equal, but
the warning prints less than. Update the warning.
Reported-by: Jouni Malinen <
[email protected]
>
Signed-off-by: Willem de Bruijn <
[email protected]
>
Acked-by: Daniel Borkmann <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index 6880f34a529a56510b1145e14d41ed04803dd6a7..0f02668dc2197ffd833fd8375a8fd7260e55b4f6 100644
(file)
--- a/
net/packet/af_packet.c
+++ b/
net/packet/af_packet.c
@@
-2102,7
+2102,7
@@
static bool ll_header_truncated(const struct net_device *dev, int len)
{
/* net device doesn't like empty head */
if (unlikely(len <= dev->hard_header_len)) {
- net_warn_ratelimited("%s: packet size is too short (%d < %d)\n",
+ net_warn_ratelimited("%s: packet size is too short (%d <
=
%d)\n",
current->comm, len, dev->hard_header_len);
return true;
}