From 53fc7838ad02c613732598a1b4422e02368bf608 Mon Sep 17 00:00:00 2001 From: Neeraj Upadhyay Date: Tue, 6 Oct 2020 11:26:47 +0530 Subject: [PATCH] haven: hh_dbl: Add missing unlock in hh_dbl_validate_params Add missing unlock of cap_entry_lock in hh_dbl_validate_params(). Change-Id: Icdcf7aa1bcb2c037f4a924cddcad36007beadd00 Signed-off-by: Neeraj Upadhyay --- drivers/virt/haven/hh_dbl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/virt/haven/hh_dbl.c b/drivers/virt/haven/hh_dbl.c index 1120ccee5ec8..b9a797c230ed 100644 --- a/drivers/virt/haven/hh_dbl.c +++ b/drivers/virt/haven/hh_dbl.c @@ -61,6 +61,7 @@ static int hh_dbl_validate_params(struct hh_dbl_desc *client_desc, spin_lock(&cap_table_entry->cap_entry_lock); if (cap_table_entry->client_desc != client_desc) { + spin_unlock(&cap_table_entry->cap_entry_lock); pr_err("%s: Invalid client descriptor\n", __func__); return -EINVAL; }