Zhang Qilong 0aa2eecf85 watchdog: rti-wdt: fix reference leak in rti_wdt_probe
[ Upstream commit 8711071e9700b67045fe5518161d63f7a03e3c9e ]

pm_runtime_get_sync() will increment pm usage counter even it
failed. Forgetting to call pm_runtime_put_noidle will result
in reference leak in rti_wdt_probe, so we should fix it.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201030154909.100023-1-zhangqilong3@huawei.com
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>
2021-01-06 14:56:54 +01:00
..
2019-11-05 16:58:11 +01:00
2019-07-08 16:10:10 +02:00
2020-10-14 15:22:58 +02:00
2020-10-21 11:28:43 -07:00
2020-03-18 11:15:25 +01:00
2020-08-05 18:42:53 +02:00