net: tso: fix unaligned access to crafted TCP header in helper API
authorKarl Beldan <karl.beldan@rivierawaves.com>
Tue, 21 Oct 2014 14:06:05 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Oct 2014 16:52:55 +0000 (12:52 -0400)
commita63ba13eec092b70d4e5522d692eaeb2f9747387
treec96eb5ffac7c3908f6790d6ca2b156602478934d
parent8fc963515e893867330dec87464e9edc5204c024
net: tso: fix unaligned access to crafted TCP header in helper API

The crafted header start address is from a driver supplied buffer, which
one can reasonably expect to be aligned on a 4-bytes boundary.
However ATM the TSO helper API is only used by ethernet drivers and
the tcp header will then be aligned to a 2-bytes only boundary from the
header start address.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/tso.c