]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/tap: Set return code on failure
authorPeter Foley <pefoley@google.com>
Fri, 14 Jan 2022 05:08:58 +0000 (13:08 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 14 Feb 2022 03:50:44 +0000 (11:50 +0800)
commit41bcea7b2c99b8aec613beb62a6cdeb371a09449
treed4f87b1500ed18464409dfa6fef754b1577fbb8c
parentf3e5a17593b972a9a6079ccf7677b4389d74d5a1
net/tap: Set return code on failure

Match the other error handling in this function.

Fixes: e7b347d0bf6 ("net: detect errors from probing vnet hdr flag for TAP devices")
Reviewed-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Foley <pefoley@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/tap.c