misc: rockchip: pcie-rkep: Fix mutex lock not released in pcie_rkep_release

Change-Id: I4be295e6efb7509fc5b0d1610f2f6b2c480bbf5d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2025-06-02 23:26:22 +08:00
parent f803534f3e
commit 3791b78401

View File

@@ -351,8 +351,10 @@ static int pcie_rkep_release(struct inode *inode, struct file *file)
mutex_lock(&pcie_file->file_lock_mutex);
index = find_first_bit(pcie_file->child_vid_bitmap, RKEP_EP_VIRTUAL_ID_MAX);
if (index >= RKEP_EP_VIRTUAL_ID_MAX)
if (index >= RKEP_EP_VIRTUAL_ID_MAX) {
mutex_unlock(&pcie_file->file_lock_mutex);
break;
}
__clear_bit(index, pcie_file->child_vid_bitmap);
mutex_unlock(&pcie_file->file_lock_mutex);