]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitabe9900396d2159867ddef31486d7656119017df
treeec309654f0b73b0d7accf430a3e3aa92c9ec60dc
parentfce443ff7036e5f41fd5bb7761e07793484fd646
xen/netfront: tolerate frags with no data

BugLink: https://bugs.launchpad.net/bugs/1837257
[ Upstream commit d81c5054a5d1d4999c7cdead7636b6cd4af83d36 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/xen-netfront.c