[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/2] 9pfs: fix v9fs_mark_fids_unreclaim() return valu
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [PULL 2/2] 9pfs: fix v9fs_mark_fids_unreclaim() return value |
Date: |
Mon, 6 Nov 2017 21:05:54 +0100 |
The return value of v9fs_mark_fids_unreclaim() is then propagated to
pdu_complete(). It should be a negative errno, not -1.
Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
hw/9pfs/9p.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index f8bbac251dc9..52d46632fe15 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -512,7 +512,7 @@ static int coroutine_fn v9fs_mark_fids_unreclaim(V9fsPDU
*pdu, V9fsPath *path)
/* reopen the file/dir if already closed */
err = v9fs_reopen_fid(pdu, fidp);
if (err < 0) {
- return -1;
+ return err;
}
/*
* Go back to head of fid list because
--
2.13.6