Skip to content
Snippets Groups Projects
Commit 839c8789 authored by Stuart Scott's avatar Stuart Scott
Browse files

Revert "soc: qcom: pil: Avoid possible buffer overflow during Modem boot"

This reverts commit 52a31837.

Change-Id: I0e84f967683975555904c13e67343b4c266338e4
parent 52a31837
Branches
Tags
No related merge requests found
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
......@@ -477,16 +477,7 @@ int pil_mss_reset_load_mba(struct pil_desc *pil)
goto err_mss_reset;
}
count = fw->size;
if (count <= SZ_1M) {
/* Ensures memcpy is done for max 1MB fw size */
memcpy(mba_virt, data, count);
} else {
dev_err(pil->dev, "%s fw image loading into memory is failed due to fw size overflow\n",
__func__);
ret = -EINVAL;
goto err_mss_reset;
}
/* Ensure memcpy of the MBA memory is done before loading the DP */
wmb();
ret = pil_mss_reset(pil);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment