]> git.proxmox.com Git - qemu.git/blobdiff - audio/ossaudio.c
rng-egd: remove redundant free
[qemu.git] / audio / ossaudio.c
index 007c64115aec20106a6a5b4ac7f4a42c6a821dcd..5a737160328a1d1f08b77251e148944d79967535 100644 (file)
@@ -849,6 +849,10 @@ static int oss_ctl_in (HWVoiceIn *hw, int cmd, ...)
 
 static void *oss_audio_init (void)
 {
+    if (access(conf.devpath_in, R_OK | W_OK) < 0 ||
+        access(conf.devpath_out, R_OK | W_OK) < 0) {
+        return NULL;
+    }
     return &conf;
 }