]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 05:59:20 +0000 (21:59 -0800)
commit9525f014833004d8749056ce5d83388374c4ce0f
treea71c61affa5fb01ed77eab347654f4b29f9384b3
parenta0358f2c6f3242cdd5596eee0a78877dabbc110d
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