diff options
author | Luiz Souza <luiz@netgate.com> | 2018-03-08 19:35:24 -0300 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2018-03-08 21:51:14 -0600 |
commit | b3b184d0afe6bd05367dd44abf060aeb94e626f3 (patch) | |
tree | eba10fa061bba54f61768842592f0afe751c16b0 | |
parent | 2c641c613c7994f7ba296c4d248b5295cfaab572 (diff) | |
download | FreeBSD-src-b3b184d0afe6bd05367dd44abf060aeb94e626f3.zip FreeBSD-src-b3b184d0afe6bd05367dd44abf060aeb94e626f3.tar.gz |
Return the actual error, if any, on etherswitch_iowrite().
(cherry picked from commit d86d52695f351e7c49f94582d1d10d80f587c7f6)
-rw-r--r-- | sys/dev/etherswitch/etherswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/etherswitch.c b/sys/dev/etherswitch/etherswitch.c index 0d4d18b..1f4b0dc 100644 --- a/sys/dev/etherswitch/etherswitch.c +++ b/sys/dev/etherswitch/etherswitch.c @@ -295,7 +295,7 @@ etherswitchiowrite(struct cdev *cdev, struct uio *uio, int ioflag) break; } - return (0); + return (error); } MODULE_VERSION(etherswitch, 1); |