habanalabs: Fix memleak in hl_device_reset
stable inclusion from stable-5.10.9 commit 8c3520e21f6b048901534463233d7aa73900a112 bugzilla: 47457 -------------------------------- [ Upstream commit b000700d ] 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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment