]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tty: nozomi: Fix a resource leak in an error handling function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 9 May 2021 17:22:33 +0000 (19:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:09 +0000 (17:00 +0200)
commitfc9b17d5cc508b6488b5a2143d0cfd885c929cf3
tree629e056a194578b75931de914701dfa3413b2318
parenteb96f92e90af8860b46f76b3a2fb12d60332b9f8
tty: nozomi: Fix a resource leak in an error handling function

[ Upstream commit 31a9a318255960d32ae183e95d0999daf2418608 ]

A 'request_irq()' call is not balanced by a corresponding 'free_irq()' in
the error handling path, as already done in the remove function.

Add it.

Fixes: 9842c38e9176 ("kfifo: fix warn_unused_result")
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/4f0d2b3038e82f081d370ccb0cade3ad88463fe7.1620580838.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/nozomi.c