[PATCH v1 platform-next/based on branch review-andy 1/platform/x86: mlx-platform: Fix exit point on ioport map failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case of devm_ioport_map() failure go to 'fail_alloc' exit point
instead of wrong 'fail_platform_mux_register' exit point in
mlxplat_init().

Signed-off-by: Vadim Pasternak <vadimp@xxxxxxxxxxxx>
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Fixes: ef58891a57d0 (platform/x86: mlx-platform: Move regmap initialization before all drivers activation)
---
 drivers/platform/x86/mlx-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index 262fa6b1282b..2b98f299faa4 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -2100,7 +2100,7 @@ static int __init mlxplat_init(void)
 			       mlxplat_lpc_resources[1].start, 1);
 	if (!mlxplat_mlxcpld_regmap_ctx.base) {
 		err = -ENOMEM;
-		goto fail_platform_mux_register;
+		goto fail_alloc;
 	}
 
 	if (!mlxplat_regmap_config)
-- 
2.11.0




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux