summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic/ionic_datapath.c
diff options
context:
space:
mode:
authorFanhua Li <lifanhua5@huawei.com>2025-07-28 19:50:27 +0800
committerDanilo Krummrich <dakr@kernel.org>2025-08-09 14:09:53 +0200
commitbb8aeaa3191b617c6faf8ae937252e059673b7ea (patch)
treea6450504fd44a914b4762fdcb29ee45c1f00879f /drivers/infiniband/hw/ionic/ionic_datapath.c
parent038d61fd642278bab63ee8ef722c50d10ab01e8f (diff)
drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor().
When the nvif_vmm_type is invalid, we will return error directly without freeing the args in nvif_vmm_ctor(), which leading a memory leak. Fix it by setting the ret -EINVAL and goto done. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/all/202312040659.4pJpMafN-lkp@intel.com/ Fixes: 6b252cf42281 ("drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm") Signed-off-by: Fanhua Li <lifanhua5@huawei.com> Link: https://lore.kernel.org/r/20250728115027.50878-1-lifanhua5@huawei.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_datapath.c')
0 files changed, 0 insertions, 0 deletions