mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init()
[ Upstream commit0414a100d6
] If platform_device_add() is not called or failed, it should call platform_device_put() in error case. Fixes:97933d6ced
("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>
This commit is contained in:
parent
7977c7b68c
commit
f3b70a3390
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ err_free_pdata:
|
|||
kfree(pdata);
|
||||
|
||||
err_free_pdev:
|
||||
platform_device_unregister(pdev);
|
||||
platform_device_put(pdev);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue