mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
83c774f0c6
This is a struct with a trailing zero-length array of icc_node pointers
but it's allocated as if it were a single array of icc_nodes instead.
This allocates too much memory at probe time but shouldn't have any
noticeable effect. Both sdm845 and qcs404 are affected.
Fix by replacing kcalloc with kzalloc and using the "struct_size" macro.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qcs404.c | ||
sdm845.c | ||
smd-rpm.c | ||
smd-rpm.h |