aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorDinghao Liu <[email protected]>2020-12-26 07:27:14 +0000
committerOded Gabbay <[email protected]>2020-12-29 21:23:12 +0000
commitb000700d6db50c933ce8b661154e26cf4ad06dba (patch)
treefd0d09aef76a841985c775e37fdde209f14455fd /drivers/pci/controller/pci-host-common.c
parenthabanalabs: fix order of status check (diff)
downloadkernel-b000700d6db50c933ce8b661154e26cf4ad06dba.tar.gz
kernel-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 <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions