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 /scripts/lib/abi/helpers.py | |
| parent | 4f7b54e17eddac93c78151ffc80b8437ab11c90b (diff) | |
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 'scripts/lib/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions
