]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 15:16:41 +0000 (16:16 +0100)
commitba0b3c189365d3f55b6b633d40ceaa815eb0323d
tree30c125fa802836cbb4f6a9b70fb8c96e992c0edb
parentd2ea9f12c45ec97c154fce5a880a05f0c71482e4
xen/netfront: tolerate frags with no data

[ 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>
drivers/net/xen-netfront.c