diff options
Diffstat (limited to 'lib/test_parman.c')
| -rw-r--r-- | lib/test_parman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_parman.c b/lib/test_parman.c index f9b97426a337..ae5a0a2f63c3 100644 --- a/lib/test_parman.c +++ b/lib/test_parman.c @@ -219,7 +219,7 @@ static struct test_parman *test_parman_create(const struct parman_ops *ops) struct test_parman *test_parman; int err; - test_parman = kzalloc(sizeof(*test_parman), GFP_KERNEL); + test_parman = kzalloc_obj(*test_parman, GFP_KERNEL); if (!test_parman) return ERR_PTR(-ENOMEM); err = test_parman_resize(test_parman, TEST_PARMAN_BASE_COUNT); |
