aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2024-02-02 17:21:44 +0800
committerGuenter Roeck <[email protected]>2024-02-25 12:37:37 -0800
commit1a793caf6f6991716cb07583ed7c27de84ef0cba (patch)
tree9fe25964049c0b077f92977b8996f5d47f0fd9c9 /lib/test_fortify/write_overflow-strncpy-src.c
parent18b24a5f9ca3f180f0be72b98f170f043a5d8961 (diff)
hwmon: (coretemp) Use dynamic allocated memory for core temp_data
The total memory needed for saving per core temperature data depends on the number of cores in a package. Using static allocated memory wastes memories on systems with low per package core count. Improve the code to use dynamic allocated memory so that it can be improved further when per package core count information becomes available. No functional change intended. Signed-off-by: Zhang Rui <[email protected]> Link: https://lore.kernel.org/r/[email protected] [groeck: Fixed continuation line alignment] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions