Skip to content

Commit 95fe795

Browse files
committed
Merge tag 'qcom-drivers-fixes-for-6.11-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
One more Qualcomm driver fix for v6.11 This resolves a deadlock in the Qualcomm uefisecapp driver following the attempt to acquire global context is acquired in the case the device isn't probed. * tag 'qcom-drivers-fixes-for-6.11-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: firmware: qcom: uefisecapp: Fix deadlock in qcuefi_acquire() Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 9cc7b17 + db213b0 commit 95fe795

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/firmware/qcom/qcom_qseecom_uefisecapp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ static int qcuefi_set_reference(struct qcuefi_client *qcuefi)
715715
static struct qcuefi_client *qcuefi_acquire(void)
716716
{
717717
mutex_lock(&__qcuefi_lock);
718+
if (!__qcuefi) {
719+
mutex_unlock(&__qcuefi_lock);
720+
return NULL;
721+
}
718722
return __qcuefi;
719723
}
720724

0 commit comments

Comments
 (0)