• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión686391112fd42c615bcc4233472887a66a9b5a4a (tree)
Tiempo2020-02-11 02:24:43
AutorDr. David Alan Gilbert <dgilbert@redh...>
CommiterDr. David Alan Gilbert

Log Message

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>

Cambiar Resumen

Diferencia incremental

--- a/tools/virtiofsd/passthrough_ll.c
+++ b/tools/virtiofsd/passthrough_ll.c
@@ -232,6 +232,7 @@ static int load_capng(void)
232232 */
233233 cap.saved = capng_save_state();
234234 if (!cap.saved) {
235+ pthread_mutex_unlock(&cap.mutex);
235236 fuse_log(FUSE_LOG_ERR, "capng_save_state (thread)\n");
236237 return -EINVAL;
237238 }