Re: [PATCH] habanalabs: Fix memleak in hl_device_reset

2020-12-29 Thread Oded Gabbay
On Sat, Dec 26, 2020 at 9:32 AM Dinghao Liu wrote: > > 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 > --- > drivers/misc/habanalabs/common/device.c | 2 ++ > 1 file changed, 2

[PATCH] habanalabs: Fix memleak in hl_device_reset

2020-12-25 Thread Dinghao Liu
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 --- drivers/misc/habanalabs/common/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/habanalabs/common/device.c