xen-netfront: Remove BUGs on paged skb data which crosses a page boundary
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 26 Nov 2014 02:28:24 +0000 (20:28 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2014 03:24:13 +0000 (19:24 -0800)
commit8d609725d4357f499e2103e46011308b32f53513
treef7a4035a4042165fb0fd9ced5d86ab9e350e6560
parent7fa2955ff70ce4532f144d26b8a087095f9c9ffc
xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

These BUGs can be erroneously triggered by frags which refer to
tail pages within a compound page. The data in these pages may
overrun the hardware page while still being contained within the
compound page, but since compound_order() evaluates to 0 for tail
pages the assertion fails. The code already iterates through
subsequent pages correctly in this scenario, so the BUGs are
unnecessary and can be removed.

Fixes: f36c374782e4 ("xen/netfront: handle compound page fragments on transmit")
Cc: <stable@vger.kernel.org> # 3.7+
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c