]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeon_ep: Add missing check for ioremap
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 15 Jun 2023 03:34:00 +0000 (11:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:18 +0000 (16:02 +0200)
commitc7329a5c87eb6051b4d68572ced6d8f21a28d6d1
treef82d0ed3746121bb90df4380bcbc28741499ec4e
parentbd64e928241787698710d47330d75d441320acb4
octeon_ep: Add missing check for ioremap

[ Upstream commit 9a36e2d44d122fe73a2a76ba73f1d50a65cf8210 ]

Add check for ioremap() and return the error if it fails in order to
guarantee the success of ioremap().

Fixes: 862cd659a6fb ("octeon_ep: Add driver framework and device initialization")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://lore.kernel.org/r/20230615033400.2971-1-jiasheng@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_main.c