]> git.ipfire.org Git - thirdparty/linux.git/commit
EDAC/i7core: Use kzalloc_flex()
authorRosen Penev <rosenp@gmail.com>
Fri, 13 Mar 2026 21:59:00 +0000 (14:59 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 13 Mar 2026 22:03:36 +0000 (15:03 -0700)
commit7cbea96f6660786158ed7dc81fe40273d860355b
tree95976044767cb583508b8dc8ccde8b54e326953d
parent62a9fc50e8d947601ea3484e732b1a65a0a54b96
EDAC/i7core: Use kzalloc_flex()

Simplifies allocations by using a flexible array member in this struct.

Add __counted_by to get extra runtime analysis. Move counting variable
assignment to right after allocation as required by __counted_by.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://patch.msgid.link/20260313215900.6724-1-rosenp@gmail.com
drivers/edac/i7core_edac.c