Messages in this thread | | | From | Paul Moore <> | Date | Thu, 16 Dec 2021 17:42:44 -0500 | Subject | Re: [PATCH -next, v2] audit: use struct_size() helper in kmalloc() |
| |
On Wed, Dec 15, 2021 at 9:05 PM xiujianfeng <xiujianfeng@huawei.com> wrote: > 在 2021/12/16 6:00, Gustavo A. R. Silva 写道: > > On Wed, Dec 15, 2021 at 11:04:20AM +0800, Xiu Jianfeng wrote: > >> Make use of struct_size() helper instead of an open-coded calculation. > > I think you should also mention the flexible array transformation in > > struct audit_rule_data. > > thanks, and due to the previous patch has been merged into linux-next, > a diff patch about struct_size() and > > a seperate patch about flexible array will be send.
Please make sure to send it to the audit mailing list as well. I don't like merging patches that haven't been sent to the mailing list, it's a bad practice IMO.
-- paul moore www.paul-moore.com
| |