mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
Merge "soc: qcom: minidump: check the size parameter passed to qcom_smem_get()"
This commit is contained in:
commit
bc353eb572
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue