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

Commit c1a89dd7 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: pil: Avoid memory leaks by releasing the firmware resources"

parents 5b9c5cf4 9909a6b8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -849,8 +849,11 @@ static int pil_load_seg(struct pil_desc *desc, struct pil_seg *seg)
		if (fw->size != seg->filesz) {
			pil_err(desc, "Blob size %u doesn't match %lu\n",
					ret, seg->filesz);
			release_firmware(fw);
			return -EPERM;
		}

		release_firmware(fw);
	}

	/* Zero out trailing memory */