]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: netup_unidvb: fix irq init by register it at the end of probe
authorWei Chen <harperchen1110@gmail.com>
Wed, 15 Mar 2023 13:45:18 +0000 (13:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:28:57 +0000 (10:28 +0200)
commitb66849f3546240b61d1c398d8bd7c8dea849e199
tree3a7b724ecf79b4ca55382af031ed5c04b3e0bba7
parent88aef84eefb330e083c56b51fc083821e7ae84e0
media: netup_unidvb: fix irq init by register it at the end of probe

[ Upstream commit e6ad6233592593079db5c8fa592c298e51bc1356 ]

IRQ handler netup_spi_interrupt() takes spinlock spi->lock. The lock
is initialized in netup_spi_init(). However, irq handler is registered
before initializing the lock.

Spinlock dma->lock and i2c->lock suffer from the same problem.

Fix this by registering the irq at the end of probe.

Link: https://lore.kernel.org/linux-media/20230315134518.1074497-1-harperchen1110@gmail.com
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/netup_unidvb/netup_unidvb_core.c