diff options
| author | Gongwei Li <ligongwei@kylinos.cn> | 2025-11-05 18:36:19 +0800 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2025-11-07 16:38:34 -0500 |
| commit | 77563f3d4704206c8f6626852365591aa4e0b779 (patch) | |
| tree | 5fbb29ba2dd6c4bb36a2bef566ba31d9ef8fe757 /rust/kernel/alloc | |
| parent | audit: fix comment misindentation in audit.h (diff) | |
| download | linux-77563f3d4704206c8f6626852365591aa4e0b779.tar.gz linux-77563f3d4704206c8f6626852365591aa4e0b779.zip | |
audit: Use kzalloc() instead of kmalloc()/memset() in audit_krule_to_data()
Replace kmalloc+memset by kzalloc for better readability and simplicity.
This addresses the warning below:
WARNING: kzalloc should be used for data, instead of kmalloc/memset
Signed-off-by: Gongwei Li <ligongwei@kylinos.cn>
[PM: subject and description tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
