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

Commit 2245273b authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: pil: Avoid memory leaks by releasing the firmware resources"

parents 24d61ec1 df0da1e4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -799,8 +799,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 */