]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context
authorFuqian Huang <huangfq.daxian@gmail.com>
Fri, 9 Aug 2019 05:35:39 +0000 (13:35 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit540a2e86d4f9f8e17054f3ac26f56527a5104b2a
tree08ac547371ffcfc9c7beba64a038e05c3a978895
parente682b03cfcd0b39e903f6c7cf75fc989bc11998b
net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context

BugLink: https://bugs.launchpad.net/bugs/1843463
[ Upstream commit 8c25d0887a8bd0e1ca2074ac0c6dff173787a83b ]

As spin_unlock_irq will enable interrupts.
Function tsi108_stat_carry is called from interrupt handler tsi108_irq.
Interrupts are enabled in interrupt handler.
Use spin_lock_irqsave/spin_unlock_irqrestore instead of spin_(un)lock_irq
in IRQ context to avoid this.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/tundra/tsi108_eth.c