mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-09 06:12:00 +08:00
JIRA: https://redhat.atlassian.net/browse/RHEL-241103 Upstream status: v7.2 Conflicts: - drivers/platform/x86/intel/vsec.c: Missing kzalloc_obj conversion in removed hunks commit 8ef6b01cee44803691c0a0c95b36f8ec710e2afb Author: Rosen Penev <rosenp@gmail.com> Date: Thu Apr 30 15:43:07 2026 -0700 platform/x86/intel/vsec: allocate res with intel_vsec_dev Use a flexible array member to combine allocations. Avoids having to free separately. Add __counted_by for extra runtime analysis. Move counting variable assignment to after allocations as is already done by kzalloc_flex for GCC 15 and above. Signed-off-by: Rosen Penev <rosenp@gmail.com> Tested-by: David E. Box <david.e.box@linux.intel.com> Reviewed-by: David E. Box <david.e.box@linux.intel.com> Link: https://patch.msgid.link/20260430224307.109311-1-rosenp@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Dennis Chen <dechen@redhat.com>