mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
virtiofsd: load_capng missing unlock
Missing unlock in error path. Fixes: Covertiy CID 1413123 Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user