Thread (2 messages) 2 messages, 2 authors, 2025-05-17

Re: [PATCH] soc: fsl: qbman: Remove const from portal->cgrs allocation type

From: Christophe Leroy <hidden>
Date: 2025-05-17 10:50:47
Also in: linux-arm-kernel, linux-hardening, lkml

On Fri, 25 Apr 2025 23:20:41 -0700, Kees Cook wrote:
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 qman_cgrs *", but the returned type,
while technically matching, is const qualified. As there is no general
way to remove const qualifiers, adjust the allocation type to match
the assignment.

[...]
Applied, thanks!

[1/1] soc: fsl: qbman: Remove const from portal->cgrs allocation type
      commit: 5ddac92be4209f29ec26b3ec59a08fc76afe9ab1

Best regards,
-- 
Christophe Leroy [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help