diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2024-06-04 11:07:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-04 17:11:48 +0200 |
commit | 283cb234ef95d94c61f59e1cd070cd9499b51292 (patch) | |
tree | 1056d8caee35755f4ddfe224bd5cc696268b4bfe /drivers/misc/mei/pci-me.c | |
parent | mei: demote client disconnect warning on suspend to debug (diff) | |
download | linux-283cb234ef95d94c61f59e1cd070cd9499b51292.tar.xz linux-283cb234ef95d94c61f59e1cd070cd9499b51292.zip |
mei: me: release irq in mei_me_pci_resume error path
The mei_me_pci_resume doesn't release irq on the error path,
in case mei_start() fails.
Cc: <stable@kernel.org>
Fixes: 33ec08263147 ("mei: revamp mei reset state machine")
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240604090728.1027307-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/pci-me.c')
-rw-r--r-- | drivers/misc/mei/pci-me.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index 7f59dd38c32f..6589635f8ba3 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c @@ -385,8 +385,10 @@ static int mei_me_pci_resume(struct device *device) } err = mei_restart(dev); - if (err) + if (err) { + free_irq(pdev->irq, dev); return err; + } /* Start timer if stopped in suspend */ schedule_delayed_work(&dev->timer_work, HZ); |