[PATCH] tomoyo: replace tomoyo_round2() with kmalloc_size_roundup()

Tetsuo Handa penguin-kernel at I-love.SAKURA.ne.jp
Wed Mar 1 14:53:09 UTC 2023


On 2023/02/28 18:35, Vlastimil Babka wrote:
> It seems tomoyo has had its own implementation of what
> kmalloc_size_roundup() does today. Remove the function tomoyo_round2()
> and replace it with kmalloc_size_roundup(). It provides more accurate
> results and doesn't contain a while loop.
> 
> Signed-off-by: Vlastimil Babka <vbabka at suse.cz>
> ---
>  security/tomoyo/audit.c  |  6 +++---
>  security/tomoyo/common.c |  2 +-
>  security/tomoyo/common.h | 44 ----------------------------------------
>  3 files changed, 4 insertions(+), 48 deletions(-)
> 

Applied as https://osdn.net/projects/tomoyo/scm/git/tomoyo-test1/commits/c120c98486c2 .

Thank you.



More information about the Linux-security-module-archive mailing list