]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xen/netback: don't call kfree_skb() under spin_lock_irqsave()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 5 Dec 2022 14:13:33 +0000 (22:13 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 7 Dec 2022 15:00:33 +0000 (16:00 +0100)
commit9e624651859214fb2c4e442b059eba0aefcd0801
tree7bc5284204043079a1ce9fc01219522adbebd6af
parent92439a859000c6f4c74160a3c08c1a519e3ca125
xen/netback: don't call kfree_skb() under spin_lock_irqsave()

It is not allowed to call kfree_skb() from hardware interrupt
context or with interrupts being disabled. So replace kfree_skb()
with dev_kfree_skb_irq() under spin_lock_irqsave().

Fixes: be81992f9086 ("xen/netback: don't queue unlimited number of packages")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://lore.kernel.org/r/20221205141333.3974565-1-yangyingliang@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/xen-netback/rx.c