Revisión | 686391112fd42c615bcc4233472887a66a9b5a4a (tree) |
---|---|
Tiempo | 2020-02-11 02:24:43 |
Autor | Dr. David Alan Gilbert <dgilbert@redh...> |
Commiter | Dr. David Alan Gilbert |
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>
@@ -232,6 +232,7 @@ static int load_capng(void) | ||
232 | 232 | */ |
233 | 233 | cap.saved = capng_save_state(); |
234 | 234 | if (!cap.saved) { |
235 | + pthread_mutex_unlock(&cap.mutex); | |
235 | 236 | fuse_log(FUSE_LOG_ERR, "capng_save_state (thread)\n"); |
236 | 237 | return -EINVAL; |
237 | 238 | } |