Merge "soc: qcom: minidump: check the size parameter passed to qcom_smem_get()"
This commit is contained in:
commit
bc353eb572
@ -561,7 +561,7 @@ static int __init msm_minidump_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*Check global minidump support initialization */
|
/*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");
|
pr_err("System Minidump TOC not initialized\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user