ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init()
stable inclusion from stable-v5.10.173 commit 66315db914aab58a55b3648baad645314f8993b5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=66315db914aab58a55b3648baad645314f8993b5 -------------------------------- [ Upstream commit 0414a100 ] If platform_device_add() is not called or failed, it should call platform_device_put() in error case. Fixes: 97933d6c ("ARM: OMAP1: dmtimer: conversion to platform devices") Reported-by:Hulk Robot <hulkci@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Message-Id: <20220701094602.2365099-1-yangyingliang@huawei.com> Signed-off-by:
Tony Lindgren <tony@atomide.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment