]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: at91sam9_wdt: use devm_request_irq to avoid missing free_irq() in error...
authorruanjinjie <ruanjinjie@huawei.com>
Wed, 16 Nov 2022 09:49:50 +0000 (17:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:23 +0000 (13:55 +0100)
commit75edfc16b080bef2f16541ccc83bc8a39df17723
tree5306dde2b7358879eae4aa095301b30e74c60bdb
parent744bab2a0c51f24735ec672fc8e91bcc0132c690
watchdog: at91sam9_wdt: use devm_request_irq to avoid missing free_irq() in error path

[ Upstream commit ce2f5e8e0140b4637c1a2954275b8c206ca6f68d ]

free_irq() is missing in case of error in at91_wdt_init(), use
devm_request_irq to fix that.

Fixes: 143b160dcf2c ("watchdog: at91sam9_wdt: better watchdog support")
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221116094950.3141943-1-ruanjinjie@huawei.com
[groeck: Adjust multi-line alignment]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/at91sam9_wdt.c