diff options
author | Angus Chen | 2023-01-05 14:11:23 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-03-10 09:32:38 +0100 |
commit | 1e0a7b41f503c1172d4b0b8c5bd4673d907bfdf8 (patch) | |
tree | 2448c2e1816063e1357db746c4a6d56dd05792b5 /arch/mips | |
parent | 7f02f32ee66e3d8cb41292ba623ebf15c8fa09cb (diff) |
ARM: imx: Call ida_simple_remove() for ida_simple_get
[ Upstream commit ebeb49f43c8952f12aa20f03f00d7009edc2d1c5 ]
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: e76bdfd7403a ("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>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions