dataplane: fix shadowed return value
PATCH 1/1 dataplane: fix shadowed return value
Propagate the error return value from get_indirect().
--- hw/virtio/dataplane/vring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/dataplane/vring.c +1 -1
@@ -376,7 +376,7 @@ int vring_pop(VirtIODevice *vdev, Vring *vring,barrier ();if (desc.flags &VRING_DESC_F_INDIRECT ) { -int ret =get_indirect (vring, elem, &desc); + ret =get_indirect (vring, elem, &desc);if (ret <0 ) { goto out; }
Signature · 1 line
1.8.4.2
Quoted 12 lines · Stefan Hajnoczi
Propagate the error return value from
get_indirect().Signed-off-by Stefan Hajnoczi <[email protected]>--- hw/virtio/dataplane/vring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/virtio/dataplane/vring.c +0
-0
hw/virtio/dataplane/vring.c int vring_pop(VirtIODevice *vdev, Vring *vring, · line 382
Quoted 8 lines
hw/virtio/dataplane/vring.c +1
-1@@ -376,7 +376,7 @@ int vring_pop(VirtIODevice *vdev, Vring *vring,barrier ();if (desc.flags &VRING_DESC_F_INDIRECT ) { -int ret =get_indirect (vring, elem, &desc); + ret =get_indirect (vring, elem, &desc);if (ret <0 ) { goto out; }
Broken in commit 4d684832. Could be mentioned in commit message.
Quoted 3 lines · Stefan Hajnoczi
Propagate the error return value from
get_indirect().Signed-off-by Stefan Hajnoczi <[email protected]>
This fixes the compilation error (see also bug 1268596).
thanks
-- PMM
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Hajnoczi
Propagate the error return value from
get_indirect().Signed-off-by Stefan Hajnoczi <[email protected]>--- hw/virtio/dataplane/vring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Fixed commit description as suggested by Markus.
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
Quoted 8 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Hajnoczi
Propagate the error return value from
get_indirect().Signed-off-by Stefan Hajnoczi <[email protected]>--- hw/virtio/dataplane/vring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines
Fixed commit description as suggested by Markus.
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Ping! Can we get this into master, please? It's now been failing to compile for over a week...
thanks
-- PMM
Am 23.01.2014 um 15:38 hat Peter Maydell geschrieben:
Quoted 9 lines · Stefan Hajnoczi
Quoted 8 lines · Stefan Hajnoczi
Quoted 6 lines
Propagate the error return value from
get_indirect().Signed-off-by Stefan Hajnoczi <[email protected]>--- hw/virtio/dataplane/vring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Quoted 4 lines
Fixed commit description as suggested by Markus.
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/blockPing! Can we get this into master, please? It's now been failing to compile for over a week...
Nobody seems to be processing pull requests at the moment...
This is queued for the next block layer pull request, but even the one from two weeks ago hasn't been pulled yet. If the last one doesn't get pulled until tomorrow, I'll send a v2 of the pull request that includes the changes from what was planned to be three separate one-week pull requests.
Kevin