summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Grund <flamefire89@gmail.com>2023-12-23 19:31:27 +0100
committerAlexander Grund <flamefire89@gmail.com>2023-12-23 19:40:12 +0100
commit3e24a0a89ab3abcb1a392999452a5412b5cc5184 (patch)
treef74a7fb9fd03b795db52baea4a3959bd9810e5c8
parentcbe60550000c67276ae9f064d3df45edf085b1bd (diff)
msm: adsprpc: Add missing spin_lock in `fastrpc_debugfs_read`
There is an unmatched `spin_unlock` at the bottom. This `spin_lock` was forgotten in 4aef69f481108b6fa16458fa0a07d07be4d8e97f. Change-Id: I2d283bb32002b993185e4927200606c384fab414
-rw-r--r--drivers/char/adsprpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c
index 105678e7a499..152547f89e12 100644
--- a/drivers/char/adsprpc.c
+++ b/drivers/char/adsprpc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2022, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -2943,6 +2943,7 @@ static ssize_t fastrpc_debugfs_read(struct file *filp, char __user *buffer,
map->secure, map->attr);
}
mutex_unlock(&fl->map_mutex);
+ spin_lock(&fl->hlock);
len += scnprintf(fileinfo + len, DEBUGFS_SIZE - len,
"\n%s %s %s\n", title,
" LIST OF PENDING SMQCONTEXTS ", title);