diff options
| -rw-r--r-- | vm/qemu/qemu.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 9cb7f565b..b3f1ca0bc 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -376,7 +376,7 @@ func (pool *Pool) ctor(workdir, sshkey, sshuser string, index int) (vmimpl.Insta sshuser: sshuser, diagnose: make(chan bool, 1), } - if st, err := os.Stat(inst.image); err != nil && st.Size() == 0 { + if st, err := os.Stat(inst.image); err == nil && st.Size() == 0 { // Some kernels may not need an image, however caller may still // want to pass us a fake empty image because the rest of syzkaller // assumes that an image is mandatory. So if the image is empty, we ignore it. |
