mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-02 18:54:10 +08:00
[media] staging: lirc_serial: Fix deadlock on resume failure
A resume function cannot remove the device it is resuming! Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
c8e57e1b76
commit
1ff1d88e86
@ -1127,10 +1127,8 @@ static int lirc_serial_resume(struct platform_device *dev)
|
|||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (hardware_init_port() < 0) {
|
if (hardware_init_port() < 0)
|
||||||
lirc_serial_exit();
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
|
||||||
|
|
||||||
spin_lock_irqsave(&hardware[type].lock, flags);
|
spin_lock_irqsave(&hardware[type].lock, flags);
|
||||||
/* Enable Interrupt */
|
/* Enable Interrupt */
|
||||||
|
Loading…
Reference in New Issue
Block a user