[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/5] virtiofsd: load_capng missing unlock
From: |
Dr. David Alan Gilbert (git) |
Subject: |
[PULL 3/5] virtiofsd: load_capng missing unlock |
Date: |
Mon, 10 Feb 2020 17:29:16 +0000 |
From: "Dr. David Alan Gilbert" <address@hidden>
Missing unlock in error path.
Fixes: Covertiy CID 1413123
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
tools/virtiofsd/passthrough_ll.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
index e6f2399efc..c635fc8820 100644
--- a/tools/virtiofsd/passthrough_ll.c
+++ b/tools/virtiofsd/passthrough_ll.c
@@ -232,6 +232,7 @@ static int load_capng(void)
*/
cap.saved = capng_save_state();
if (!cap.saved) {
+ pthread_mutex_unlock(&cap.mutex);
fuse_log(FUSE_LOG_ERR, "capng_save_state (thread)\n");
return -EINVAL;
}
--
2.24.1
- [PULL 0/5] virtiofs queue, Dr. David Alan Gilbert (git), 2020/02/10
- [PULL 2/5] virtiofsd: fv_create_listen_socket error path socket leak, Dr. David Alan Gilbert (git), 2020/02/10
- [PULL 3/5] virtiofsd: load_capng missing unlock,
Dr. David Alan Gilbert (git) <=
- [PULL 4/5] virtiofsd: do_read missing NULL check, Dr. David Alan Gilbert (git), 2020/02/10
- [PULL 1/5] virtiofsd: Remove fuse_req_getgroups, Dr. David Alan Gilbert (git), 2020/02/10
- [PULL 5/5] docs: add virtiofsd(1) man page, Dr. David Alan Gilbert (git), 2020/02/10
- Re: [PULL 0/5] virtiofs queue, Peter Maydell, 2020/02/10