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

Commit f3ddbcff authored by Subramanian Ananthanarayanan's avatar Subramanian Ananthanarayanan Committed by Gerrit - the friendly Code Review server
Browse files

mhi: netdev: Avoid free of netdev client,ipc handles



Change involves to avoid free of mhi netdev client, ipc handles
as part of mhi_dev_net_state_cb(). These are not re-allocated in
mhi_dev_net_interface_init() as mhi_net_ctxt.client_handle is
already valid which is called during device reset scenario.

Change-Id: I6f660c8dccd47a93c115c39d2898f450c5d61635
Signed-off-by: default avatarSubramanian Ananthanarayanan <skananth@codeaurora.org>
parent bfa2b32c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -702,8 +702,6 @@ static void mhi_dev_net_state_cb(struct mhi_dev_client_cb_data *cb_data)
			mhi_dev_net_free_reqs(&mhi_client->wr_req_buffers);
			free_netdev(mhi_client->dev);
			mhi_client->dev = NULL;
			kfree(mhi_client);
			kfree(mhi_net_ipc_log);
		}
	}
}