Merge pull request #68 from jpoimboe/core-no-kzalloc

core/kmod: use kmalloc instead of kzalloc
This commit is contained in:
Seth Jennings 2014-03-18 17:06:03 -05:00
commit ae6fce2cd9

View File

@ -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;