virtio_net: Remove BUG() to avoid machine dead
authorXianting Tian <xianting.tian@linux.alibaba.com>
Sat, 5 Jun 2021 15:31:00 +0000 (11:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 20:06:46 +0000 (13:06 -0700)
commit85eb1389458d134bdb75dad502cc026c3753a619
treef374e6cbcaf8e7bc5a16f27688b9c4bea75f09a9
parentec89c2b55dc798096c5c16af4ee0094ff6c8cb3b
virtio_net: Remove BUG() to avoid machine dead

We should not directly BUG() when there is hdr error, it is
better to output a print when such error happens. Currently,
the caller of xmit_skb() already did it.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c