octeontx2-af: cn10k: mcs: Fix error return code in mcs_register_interrupts()
authorYang Yingliang <yangyingliang@huawei.com>
Sun, 9 Oct 2022 01:51:26 +0000 (09:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Oct 2022 20:42:33 +0000 (21:42 +0100)
commitb2cf5d902ec1a7560f20945ddd2b0de82eff7cf3
tree9f9dcfefce053eca3b3dc3c22a8f99a7c8460f97
parent557f050166e523ce86018d7a43e7d543d9598b3d
octeontx2-af: cn10k: mcs: Fix error return code in mcs_register_interrupts()

If alloc_mem() fails in mcs_register_interrupts(), it should return error
code.

Fixes: 6c635f78c474 ("octeontx2-af: cn10k: mcs: Handle MCS block interrupts")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mcs.c