]> git.baikalelectronics.ru Git - kernel.git/commit
intel_th: Fix a resource leak in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 5 Jul 2022 08:26:32 +0000 (11:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:54 +0000 (11:17 +0200)
commitc74cfc47ee854e9c5394deb04ddefa1fa6d05d7f
tree3514e95f7c213e4025e4a2e407bdec290dba00f3
parentbd0baaf92c1c26c0f3710abd5a7432a7125aa961
intel_th: Fix a resource leak in an error handling path

[ Upstream commit 43f8428f0cffd91188be7d38c09c7d8627a6e3a3 ]

If an error occurs after calling 'pci_alloc_irq_vectors()',
'pci_free_irq_vectors()' must be called as already done in the remove
function.

Fixes: f598cbf34b76 ("intel_th: pci: Use MSI interrupt signalling")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/r/20220705082637.59979-2-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/intel_th/pci.c