summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHao Luo <m202171776@hust.edu.cn>2023-04-11 04:51:07 +0300
committerAbel Vesa <abel.vesa@linaro.org>2023-06-12 12:17:19 +0300
commit188d070de9132667956f5aadd98d2bd87d3eac89 (patch)
tree58b8a206068a442c23a4f606bd13668b75d178c3 /scripts/gdb/linux/utils.py
parent6e6bb1639136f36c82efda147b63e2a2197fa3f8 (diff)
downloadlinux-188d070de9132667956f5aadd98d2bd87d3eac89.tar.xz
clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
Use devm_of_iomap() instead of of_iomap() to automatically handle the unused ioremap region. If any error occurs, regions allocated by kzalloc() will leak, but using devm_kzalloc() instead will automatically free the memory using devm_kfree(). Fixes: daeb14545514 ("clk: imx: imx8mn: Switch to clk_hw based API") Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver") Signed-off-by: Hao Luo <m202171776@hust.edu.cn> Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20230411015107.2645-1-m202171776@hust.edu.cn Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions