aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-04-26 06:18:16 +0000
committerGreg Kroah-Hartman <[email protected]>2025-05-01 15:57:15 +0000
commit09f9adbcea38477b37ba63743c7538d2bdcd95a2 (patch)
treef5a5744f8760e5d0f6a83fe7070b8c73bf50654c /net/core/dev_api.c
parentMAINTAINERS: Fix XILINX SD-FEC entry (diff)
downloadkernel-09f9adbcea38477b37ba63743c7538d2bdcd95a2.tar.gz
kernel-09f9adbcea38477b37ba63743c7538d2bdcd95a2.zip
mei: Cast the cb->ext_hdr allocation type
In preparation for making the kmalloc family of allocators type aware, we need to make sure that the returned type from the allocation matches the type of the variable being assigned. (Before, the allocator would always return "void *", which can be implicitly cast to any pointer type.) The assigned type is "struct mei_ext_hdr *", but the returned type will be "struct mei_ext_hdr_gsc_f2h *", which is a larger allocation size. This is by design as struct mei_ext_hdr_gsc_f2h contains struct mei_ext_hdr as its first member. Cast the allocation to the match the assignment. Signed-off-by: Kees Cook <[email protected]> Acked-by: Alexander Usyskin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions