net/tap: Set return code on failure
Match the other error handling in this function.
Fixes: e7b347d0bf
("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>
This commit is contained in:
parent
f3e5a17593
commit
41bcea7b2c
Loading…
Reference in New Issue
Block a user