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

Commit 6d2b1229 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Call vfree instead of kfree"

parents 9ace3cb4 ba9735c2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1356,7 +1356,7 @@ static int of_parse_dt(struct mhi_controller *mhi_cntrl,
	return 0;

error_ev_cfg:
	kfree(mhi_cntrl->mhi_chan);
	vfree(mhi_cntrl->mhi_chan);

	return ret;
}
@@ -1527,7 +1527,7 @@ int of_register_mhi_controller(struct mhi_controller *mhi_cntrl)
	kfree(mhi_cntrl->mhi_cmd);

error_alloc_cmd:
	kfree(mhi_cntrl->mhi_chan);
	vfree(mhi_cntrl->mhi_chan);
	kfree(mhi_cntrl->mhi_event);

	return ret;
@@ -1541,7 +1541,7 @@ void mhi_unregister_mhi_controller(struct mhi_controller *mhi_cntrl)

	kfree(mhi_cntrl->mhi_cmd);
	kfree(mhi_cntrl->mhi_event);
	kfree(mhi_cntrl->mhi_chan);
	vfree(mhi_cntrl->mhi_chan);
	kfree(mhi_cntrl->mhi_tsync);

	if (sfr_info) {