mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user