aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-11-06 18:05:35 +0100
committerGreg Kurz <groug@kaod.org>2017-11-06 18:05:35 +0100
commit267fcadf325e54c6e1cb27321413dbdbe2200510 (patch)
treea92ac0ecfe88ff6dc7a1a737e9b0f32f7eecd54f /hw/9pfs
parent21cf9edf4f715b1105779236e142be756a086007 (diff)
9pfs: fix v9fs_mark_fids_unreclaim() return value
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 <groug@kaod.org> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/9pfs')
-rw-r--r--hw/9pfs/9p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index f8bbac251d..52d46632fe 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