virtio_net: fix error return code in virtnet_probe()
commit4b8e6ac41a594ea67ded6af6af5935f03221ea4c
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 31 May 2018 02:05:07 +0000 (31 02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 02:50:13 +0000 (31 22:50 -0400)
tree3a6680a8a4383765cc0dc24ffcb418ddbf4c4940
parentccf8dbcd062a930e64741c939ca784d15316aa0c
virtio_net: fix error return code in virtnet_probe()

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

Fixes: ba5e4426e80e ("virtio_net: Extend virtio to use VF datapath when available")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c