Message ID | 20190630112258.25219-1-vadimp@mellanox.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Andy Shevchenko |
Headers | show |
Series | [PATCH v1 platform-next/based on branch review-andy 1/platform/x86: mlx-platform: Fix exit point on ioport map failure | expand |
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)
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@mellanox.com> Reported-by: kbuild test robot <lkp@intel.com> 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(-)