octeontx2-pf: Fix error return code in otx2_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 12:11:10 +0000 (12:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:28:34 +0000 (20:28 -0700)
commit654cad8b6a17dcb00077070b27bc65873951a568
tree9f2587d9b18eae1ba65c6bd48a21adfc5bfb629a
parent7ae9a4f483eccfd46f40ede8d2bd28fd2f7a9c5f
octeontx2-pf: Fix error return code in otx2_probe()

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

Fixes: 5a6d7c9daef3 ("octeontx2-pf: Mailbox communication with AF")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c