mirror of
https://github.com/dynup/kpatch
synced 2025-02-21 12:26:52 +00:00
Merge pull request #68 from jpoimboe/core-no-kzalloc
core/kmod: use kmalloc instead of kzalloc
This commit is contained in:
commit
ae6fce2cd9
@ -38,7 +38,7 @@ static int __init patch_init(void)
|
||||
patches = (struct kpatch_patch *)&__kpatch_patches;
|
||||
num_funcs = (&__kpatch_patches_end - &__kpatch_patches) /
|
||||
sizeof(*patches);
|
||||
funcs = kzalloc(num_funcs * sizeof(*funcs), GFP_KERNEL);
|
||||
funcs = kmalloc(num_funcs * sizeof(*funcs), GFP_KERNEL);
|
||||
if (!funcs)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user