]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hisi_acc_vfio_pci: Fix reference leak in hisi_acc_vfio_debug_init
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 1 Sep 2025 08:18:08 +0000 (16:18 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Sep 2025 20:39:52 +0000 (14:39 -0600)
commiteaba58355ecd124b4a8c91df7335970ad9fe2624
treece071d0cb0096b8e41f4c8fb6783612c78342e87
parent801ca4ce0bce45aae1da2c8914d2f86cb68f8b55
hisi_acc_vfio_pci: Fix reference leak in hisi_acc_vfio_debug_init

The debugfs_lookup() function returns a dentry with an increased reference
count that must be released by calling dput().

Fixes: b398f91779b8 ("hisi_acc_vfio_pci: register debugfs for hisilicon migration driver")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20250901081809.2286649-1-linmq006@gmail.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c