Commit 1239f53d authored by Yang Yingliang's avatar Yang Yingliang Committed by sanglipeng
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Message-Id: <20220701094602.2365099-1-yangyingliang@huawei.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent fd3864ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment