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

Commit 71de0387 authored by Puja Gupta's avatar Puja Gupta Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: pil: Initialize variable to avoid invalid access



Initialize dp_fw to NULL so that we don't try to release it in the
error path err_invalid_fw.

CRs-Fixed: 1095243
Change-Id: I18f549102e626dc788e8fa56d6bb1ea28efe4f88
Signed-off-by: default avatarPuja Gupta <pujag@codeaurora.org>
parent 1446cd5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -527,7 +527,7 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)
{
	struct q6v5_data *drv = container_of(pil, struct q6v5_data, desc);
	struct modem_data *md = dev_get_drvdata(pil->dev);
	const struct firmware *fw, *dp_fw;
	const struct firmware *fw, *dp_fw = NULL;
	char fw_name_legacy[10] = "mba.b00";
	char fw_name[10] = "mba.mbn";
	char *dp_name = "msadp";