diff options
author | Pi-Hsun Shih <pihsun@chromium.org> | 2019-01-09 13:57:24 +0800 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-03-18 22:23:10 +0800 |
commit | fb4d83f293e072ad96848959d20664e2a9f2235b (patch) | |
tree | 23f0b348fcd921c8b6797163082aaeb922b3a38a /drivers/edac/e752x_edac.c | |
parent | e0fda7377d30685feaef4d93d9fdfde91c5d7d9a (diff) | |
download | talos-op-linux-fb4d83f293e072ad96848959d20664e2a9f2235b.tar.gz talos-op-linux-fb4d83f293e072ad96848959d20664e2a9f2235b.zip |
thermal: mtk: Allocate enough space for mtk_thermal.
The mtk_thermal struct contains a 'struct mtk_thermal_bank banks[];',
but the allocation only allocates sizeof(struct mtk_thermal) bytes,
which cause out of bound access with the ->banks[] member. Change it to
a fixed size array instead.
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/edac/e752x_edac.c')
0 files changed, 0 insertions, 0 deletions