diff options
| author | Markus Armbruster | 2014-04-24 15:44:18 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-04-25 15:58:07 +0200 |
| commit | 9083da1d4c9dfff30d411f8c73ea494e9d78de1b (patch) | |
| tree | bd1697a4dc3146b5dfe3f4767d9ec0430dfc75d3 /include/exec/memory.h | |
| parent | net: Make qmp_query_rx_filter() with name argument more obvious (diff) | |
| download | qemu-9083da1d4c9dfff30d411f8c73ea494e9d78de1b.tar.gz qemu-9083da1d4c9dfff30d411f8c73ea494e9d78de1b.tar.xz qemu-9083da1d4c9dfff30d411f8c73ea494e9d78de1b.zip | |
net: Don't use error_is_set() to suppress additional errors
Using error_is_set(errp) that way can sweep programming errors under
the carpet when we get called incorrectly with an error set.
qmp_query_rx_filter() breaks its loop when it detects an error. It
needs to set another error when the loop completes normally.
Return right away instead of merely breaking the loop.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
