summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-12-12 11:41:38 +0300
committerJakub Kicinski <kuba@kernel.org>2022-12-14 06:24:52 +0300
commitf0f596bd75a9d573ca9b587abb39cee0b916bb82 (patch)
treeb797af6e7912e8cbbce188b0da22ed6c913ad81c /drivers/rtc/rtc-stm32.c
parentddc9648db162eee556edd5222d2808fe33730203 (diff)
downloadlinux-f0f596bd75a9d573ca9b587abb39cee0b916bb82.tar.xz
mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
It is not allowed to call kfree_skb() or consume_skb() from hardware interrupt context or with hardware interrupts being disabled. skb_queue_purge() is called under spin_lock_irqsave() in hfcpci_l2l1D(), kfree_skb() is called in it, to fix this, use skb_queue_splice_init() to move the dch->squeue to a free queue, also enqueue the tx_skb and rx_skb, at last calling __skb_queue_purge() to free the SKBs afer unlock. Fixes: 1700fe1a10dc ("Add mISDN HFC PCI driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Alexander Duyck <alexanderduyck@fb.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
0 files changed, 0 insertions, 0 deletions