]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 06:53:09 +0000 (08:53 +0200)
commit627fffae46c29f0a590c7b6868a6407b89e34da8
tree161b6572d41b1ee2eb39eb19e1679854eca04038
parent217533e60debfd33b8336775293fa057dec10b95
virtio_net: Remove BUG() to avoid machine dead

[ Upstream commit 85eb1389458d134bdb75dad502cc026c3753a619 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/virtio_net.c