]> www.infradead.org Git - users/jedix/linux-maple.git/commit
octeontx2-af: cn10k: mcs: Fix a resource leak in the probe and remove functions
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 10 Dec 2022 17:35:00 +0000 (18:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:29 +0000 (13:32 +0100)
commitaff5bca3c2e5d7b6ec7a7d0d45aaef00d7d98182
tree8f75d2a59acab240bff5af9e2f3ab57b83fded29
parente97a4ad295b0f041b08870f4d1853dae95e25fce
octeontx2-af: cn10k: mcs: Fix a resource leak in the probe and remove functions

[ Upstream commit 87c978123ef1f346d7385eaccc141022d368166f ]

In mcs_register_interrupts(), a call to request_irq() is not balanced by a
corresponding free_irq(), neither in the error handling path, nor in the
remove function.

Add the missing calls.

Fixes: 6c635f78c474 ("octeontx2-af: cn10k: mcs: Handle MCS block interrupts")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/69f153db5152a141069f990206e7389f961d41ec.1670693669.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/mcs.c