mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
tomoyo: replace tomoyo_round2() with kmalloc_size_roundup()
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@suse.cz> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
This commit is contained in:
committed by
Tetsuo Handa
parent
c0927a7a53
commit
c120c98486
@@ -2094,7 +2094,7 @@ int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...)
|
||||
tomoyo_add_entry(r->domain, entry.query);
|
||||
goto out;
|
||||
}
|
||||
len = tomoyo_round2(entry.query_len);
|
||||
len = kmalloc_size_roundup(entry.query_len);
|
||||
entry.domain = r->domain;
|
||||
spin_lock(&tomoyo_query_list_lock);
|
||||
if (tomoyo_memory_quota[TOMOYO_MEMORY_QUERY] &&
|
||||
|
||||
Reference in New Issue
Block a user