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:
parent
6fa249027f
commit
686391112f
@ -232,6 +232,7 @@ static int load_capng(void)
|
|||||||
*/
|
*/
|
||||||
cap.saved = capng_save_state();
|
cap.saved = capng_save_state();
|
||||||
if (!cap.saved) {
|
if (!cap.saved) {
|
||||||
|
pthread_mutex_unlock(&cap.mutex);
|
||||||
fuse_log(FUSE_LOG_ERR, "capng_save_state (thread)\n");
|
fuse_log(FUSE_LOG_ERR, "capng_save_state (thread)\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user