Skip to content
Commit db213b0c authored by Dan Carpenter's avatar Dan Carpenter Committed by Bjorn Andersson
Browse files

firmware: qcom: uefisecapp: Fix deadlock in qcuefi_acquire()



If the __qcuefi pointer is not set, then in the original code, we would
hold onto the lock.  That means that if we tried to set it later, then
it would cause a deadlock.  Drop the lock on the error path.  That's
what all the callers are expecting.

Fixes: 759e7a2b ("firmware: Add support for Qualcomm UEFI Secure Application")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/19829bc4-1b6f-47f7-847a-e90c25749e40@stanley.mountain


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent c158ceb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment