Re: [PATCH -next] selinux: Use struct_size() helper in kmalloc()

From: Paul Moore
Date: Sun Dec 05 2021 - 22:00:49 EST


On Thu, Dec 2, 2021 at 2:34 AM Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> wrote:
>
> Make use of struct_size() helper instead of an open-coded calculation.
>
> Link: https://github.com/KSPP/linux/issues/160
> Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
> ---
> security/selinux/ss/sidtab.c | 2 +-
> security/selinux/xfrm.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)

Merged into selinux/next, thank you.

--
paul moore
www.paul-moore.com