Re: [PATCH] Documentation: Fix syntax of kmalloc_objs example in coding style doc

From: Kees Cook

Date: Mon Jun 01 2026 - 16:15:08 EST


On Fri, May 29, 2026 at 10:10:05AM +0200, Uwe Kleine-König wrote:
> The first parameter should match the variable that the allocated memory
> is assigned to. Fix the example accordingly, the one for kmalloc_obj got
> it right already.
>
> Fixes: 7c6d969d5349 ("Documentation: adopt new coding style of type-aware kmalloc-family")
> Signed-off-by: Uwe Kleine-König <ukleinek@xxxxxxxxxx>

oops, thank you!

Reviewed-by: Kees Cook <kees@xxxxxxxxxx>

--
Kees Cook