Re: [PATCH] keys: Use struct_size and size_add helper with alloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022/5/20 4:49, Jarkko Sakkinen wrote:
On Thu, May 19, 2022 at 10:47:02AM +0800, GUO Zihua wrote:
Use struct_size helper for calculating size of flexible struct to avoid
potential issues and improve readibility. Use size_add to calculate
addition of size to prevent potential issues.

What issues? Please explicitly state the issues.

BR, Jarkko
.

Hi Jarkko,

This is a clean-up/optimization patch mostly focuses on readability and no actual issue is observed at the moment.

--
Best
GUO Zihua



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux