diff options
author | 2020-12-26 15:27:14 +0800 | |
---|---|---|
committer | 2020-12-29 23:23:12 +0200 | |
commit | b000700d6db50c933ce8b661154e26cf4ad06dba (patch) | |
tree | fd0d09aef76a841985c775e37fdde209f14455fd /drivers/usb/cdns3/cdns3-imx.c | |
parent | habanalabs: fix order of status check (diff) | |
download | linux-dev-b000700d6db50c933ce8b661154e26cf4ad06dba.tar.xz linux-dev-b000700d6db50c933ce8b661154e26cf4ad06dba.zip |
habanalabs: Fix memleak in hl_device_reset
When kzalloc() fails, we should execute hl_mmu_fini()
to release the MMU module. It's the same when
hl_ctx_init() fails.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions