]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix hfi1_netdev_rx_init() error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 30 May 2020 14:02:24 +0000 (17:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jun 2020 23:32:54 +0000 (20:32 -0300)
commit224f1e9899739bf812c2ede31827a768757ec989
treed0ec4f7652c1a8c006c7ef0687db9ccc3f7262d7
parentf8a3ce25d9fe30f90b0d16c22503bca62849f2b5
IB/hfi1: Fix hfi1_netdev_rx_init() error handling

The hfi1_vnic_up() function doesn't check whether hfi1_netdev_rx_init()
returns errors.  In hfi1_vnic_init() we need to change the code to
preserve the error code instead of returning success.

Fixes: a9ce8409b210 ("IB/hfi1: Virtual Network Interface Controller (VNIC) HW support")
Fixes: 77145f2417ab ("IB/hfi1: Activate the dummy netdev")
Link: https://lore.kernel.org/r/20200530140224.GA1330098@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/vnic_main.c