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

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

Merge "soc: qcom: minidump: check the size parameter passed to qcom_smem_get()"

parents c0fe2ac7 30e8ee90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ static int __init msm_minidump_init(void)
	}

	/*Check global minidump support initialization */
	if (!md_global_toc->md_toc_init) {
	if (size < sizeof(*md_global_toc) || !md_global_toc->md_toc_init) {
		pr_err("System Minidump TOC not initialized\n");
		return -ENODEV;
	}