diff options
author | Eric Dumazet <edumazet@google.com> | 2014-01-17 03:03:31 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-17 03:30:31 +0400 |
commit | 0864c158836c2d0edb61f7128475e192b09bc851 (patch) | |
tree | 8880646ac3da6b1ab7ff5b870e63475fcb6c0aa7 /drivers | |
parent | 7967919db687f1a61e3d8fbf9f5582f01c8d2cf5 (diff) | |
download | linux-0864c158836c2d0edb61f7128475e192b09bc851.tar.xz |
net: eth_type_trans() should use skb_header_pointer()
eth_type_trans() can read uninitialized memory as drivers
do not necessarily pull more than 14 bytes in skb->head before
calling it.
As David suggested, we can use skb_header_pointer() to
fix this without breaking some drivers that might not expect
eth_type_trans() pulling 2 additional bytes.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions