OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21cf9ed
)
9pfs: fix v9fs_mark_fids_unreclaim() return value
author
Greg Kurz
<groug@kaod.org>
Mon, 6 Nov 2017 17:05:35 +0000
(18:05 +0100)
committer
Greg Kurz
<groug@kaod.org>
Mon, 6 Nov 2017 17:05:35 +0000
(18:05 +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 <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/9pfs/9p.c
patch
|
blob
|
history
diff --git
a/hw/9pfs/9p.c
b/hw/9pfs/9p.c
index
f8bbac2
..
52d4663
100644
(file)
--- 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