diff options
| author | Kees Cook <kees@kernel.org> | 2026-02-06 14:30:23 -0800 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2026-02-19 10:14:02 -0800 |
| commit | c732084c891d89a1a0824126b3075999a981bc88 (patch) | |
| tree | 2ed25ef62e113baec24e3d459d294835886044ab /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 48634a9ea06a453a3f0635a7063dcc63f6729436 (diff) | |
KVM: arm64: vgic: Handle const qualifier from gic_kvm_info 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 gic_kvm_info", but the returned type,
while matching, is const qualified. To get them exactly matching, just
use the dereferenced pointer for the sizeof().
Link: https://patch.msgid.link/20260206223022.it.052-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
