aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorPi-Hsun Shih <[email protected]>2019-01-09 05:57:24 +0000
committerZhang Rui <[email protected]>2019-03-18 14:23:10 +0000
commitfb4d83f293e072ad96848959d20664e2a9f2235b (patch)
tree23f0b348fcd921c8b6797163082aaeb922b3a38a /lib/string_helpers.c
parentthermal: cpu_cooling: Remove unused cur_freq variable (diff)
downloadkernel-fb4d83f293e072ad96848959d20664e2a9f2235b.tar.gz
kernel-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 <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions