diff options
| author | 2026-03-26 19:48:28 -0700 | |
|---|---|---|
| committer | 2026-03-31 19:15:21 +0200 | |
| commit | 62ba6d66b22356a6a78fd015c37fd108710dfc32 (patch) | |
| tree | 53ffb7a9b28f45cd831db13d69085e0750247c5c /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | EDAC/ie31200: Make rpl_s_cfg static (diff) | |
EDAC/mc: Use kzalloc_flex()
Convert struct mem_ctl_info to use flex array and use the new flex array
helpers to enable runtime bounds checking, including annotating the array
length member with __counted_by() for extra runtime analysis when requested.
Move memcpy() after the counter assignment so that it is initialized before
the first reference to the flex array, as the new attribute requires.
[ bp: Heavily massage commit message. ]
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://patch.msgid.link/20260327024828.7377-1-rosenp@gmail.com
Diffstat (limited to 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
