Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01abac73 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: ipc_router_mhi_xprt: Handle error condition"

parents d1a5c038 79e903bc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -876,6 +876,12 @@ static int ipc_router_mhi_config_init(
	spin_lock_init(&mhi_xprtp->rx_addr_map_list_lock);

	rc = ipc_router_mhi_driver_register(mhi_xprtp, dev);
	if (rc < 0) {
		IPC_RTR_ERR("%s: mhi registration failed\n", __func__);
		destroy_workqueue(mhi_xprtp->wq);
		kfree(mhi_xprtp);
	};

	return rc;
}