Re: [PATCH] media: rc: nuvoton: fix deadlock in nvt_write_wakeup_codes

2017-02-13 Thread Sean Young
Hi Heiner, On Sun, Feb 12, 2017 at 06:01:22PM +0100, Heiner Kallweit wrote: > nvt_write_wakeup_codes acquires the same lock as the ISR but doesn't > disable interrupts on the local CPU. This caused the following > deadlock. Fix this by using spin_lock_irqsave. > > [ 432.362008] =

[PATCH] media: rc: nuvoton: fix deadlock in nvt_write_wakeup_codes

2017-02-12 Thread Heiner Kallweit
nvt_write_wakeup_codes acquires the same lock as the ISR but doesn't disable interrupts on the local CPU. This caused the following deadlock. Fix this by using spin_lock_irqsave. [ 432.362008] [ 432.362074] WARNING: inconsistent lock state [ 432.362144] 4.10.0-r