diff --git a/virtio/9p.c b/virtio/9p.c index 6c115ff..99279f1 100644 --- a/virtio/9p.c +++ b/virtio/9p.c @@ -548,7 +548,7 @@ static void virtio_p9_readdir(struct p9_dev *p9dev, fid = get_fid(p9dev, fid_val); if (!fid->is_dir) { - errno = -EINVAL; + errno = EINVAL; goto err_out; }