ARM: imx: Call ida_simple_remove() for ida_simple_get
stable inclusion from stable-v5.10.173 commit 14736f2eaec5e3fe812c50031400293fd11b3608 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=14736f2eaec5e3fe812c50031400293fd11b3608 -------------------------------- [ Upstream commit ebeb49f4 ] The function call ida_simple_get maybe fail,we should deal with it. And if ida_simple_get success ,it need to call ida_simple_remove also. BTW,devm_kasprintf can handle id is zero for consistency. Fixes: e76bdfd7 ("ARM: imx: Added perf functionality to mmdc driver") Signed-off-by:Angus Chen <angus.chen@jaguarmicro.com> Signed-off-by:
Shawn Guo <shawnguo@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment