summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorWillem de Bruijn2015-01-08 17:29:18 +0100
committerDavid S. Miller2015-01-12 22:00:55 +0100
commiteee2f04b801ebc95da16f91fef029a083ba1a216 (patch)
tree39cfbc5fbcbfe17dc444d6c93186192fc9ae6ada /net/packet/af_packet.c
parenttg3: move init/deinit from open/close to probe/remove (diff)
downloadkernel-qcow2-linux-eee2f04b801ebc95da16f91fef029a083ba1a216.tar.gz
kernel-qcow2-linux-eee2f04b801ebc95da16f91fef029a083ba1a216.tar.xz
kernel-qcow2-linux-eee2f04b801ebc95da16f91fef029a083ba1a216.zip
packet: make packet too small warning match condition
The expression in ll_header_truncated() tests less than or equal, but the warning prints less than. Update the warning. Reported-by: Jouni Malinen <jkmalinen@gmail.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 6880f34a529a..0f02668dc219 100644
--- 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;
}