hv_netvsc: fix error return code in netvsc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 31 May 2018 02:04:43 +0000 (02:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Jun 2018 14:35:25 +0000 (10:35 -0400)
commit9c6ffbacdb5740a8560729f18e8e0e33ad21473b
tree91c4b171403011e5d39f706089156cb2f5a592ba
parent9c54aeb03a6d65a5834bd92376e921cbac6dfb8f
hv_netvsc: fix error return code in netvsc_probe()

Fix to return a negative error code from the failover register fail
error handling case instead of 0, as done elsewhere in this function.

Fixes: 1ff78076d8dd ("netvsc: refactor notifier/event handling code to use the failover framework")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c