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

Commit a97d0a09 authored by Gustavo Solaira's avatar Gustavo Solaira
Browse files

mhi_dev: mhi: Fix memory leak in ep_pcie event handler



Free the event data structure in one of the handler
cases to avoid memory leak.

Change-Id: If9c1809b0db86df0929352396a1d3815cb57d651
Signed-off-by: default avatarGustavo Solaira <gustavos@codeaurora.org>
parent daf3b388
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1192,6 +1192,7 @@ void mhi_dev_sm_pcie_handler(struct ep_pcie_notify *notify)
		ep_pcie_mask_irq_event(mhi_sm_ctx->mhi_dev->phandle,
				EP_PCIE_INT_EVT_MHI_A7, false);
		mhi_dev_notify_a7_event(mhi_sm_ctx->mhi_dev);
		kfree(dstate_change_evt);
		goto exit;
	default:
		MHI_SM_ERR("Invalid ep_pcie event, received 0x%x event\n",