net: check for underlength tap writes
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 13 Apr 2008 01:49:30 +0000 (18:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Apr 2008 01:49:30 +0000 (18:49 -0700)
If the user gives a packet under 14 bytes, we'll end up reading off the end
of the skb (not oopsing, just reading off the end).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Max Krasnyanskiy <maxk@qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found