]> git.baikalelectronics.ru Git - kernel.git/commit
net: bnx2: Fix error return code in bnx2_init_board()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 15 May 2021 07:16:05 +0000 (15:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 20:57:09 +0000 (13:57 -0700)
commitfcf41cf99944516c05da687c3b2dbdd511e46070
tree693723ed8f93752f6e9fb511e04638d0bf98a3e2
parentc44d7884325954284db5e497379b366a6b6b3b1b
net: bnx2: Fix error return code in bnx2_init_board()

Fix to return -EPERM from the error handling case instead of 0, as done
elsewhere in this function.

Fixes: b642b9ec0092 ("[BNX2]: New Broadcom gigabit network driver.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c