kvm tools: use correct error value for virtio-9p RLERROR

RLERROR expects positive error values, passing negative values causes guest kernel
panic.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Sasha Levin
2015-06-01 16:39:52 +01:00
committed by Will Deacon
parent eef8f06e10
commit 69bb42789a
+1 -1
View File
@@ -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;
}