]> asedeno.scripts.mit.edu Git - linux.git/commit
xen/netfront: tolerate frags with no data
authorJuergen Gross <jgross@suse.com>
Tue, 18 Dec 2018 15:06:19 +0000 (16:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 05:59:20 +0000 (21:59 -0800)
commitd81c5054a5d1d4999c7cdead7636b6cd4af83d36
treea71c61affa5fb01ed77eab347654f4b29f9384b3
parent8742beb50f2db903d3b6d69ddd81d67ce9914453
xen/netfront: tolerate frags with no data

At least old Xen net backends seem to send frags with no real data
sometimes. In case such a fragment happens to occur with the frag limit
already reached the frontend will BUG currently even if this situation
is easily recoverable.

Modify the BUG_ON() condition accordingly.

Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c