summaryrefslogtreecommitdiff
path: root/fs/hfsplus/unicode_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfsplus/unicode_test.c')
-rw-r--r--fs/hfsplus/unicode_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfsplus/unicode_test.c b/fs/hfsplus/unicode_test.c
index 5a7a6859efe3..c162c0fea4a8 100644
--- a/fs/hfsplus/unicode_test.c
+++ b/fs/hfsplus/unicode_test.c
@@ -22,7 +22,7 @@ static struct test_mock_string_env *setup_mock_str_env(u32 buf_size)
{
struct test_mock_string_env *env;
- env = kzalloc(sizeof(struct test_mock_string_env), GFP_KERNEL);
+ env = kzalloc_obj(struct test_mock_string_env, GFP_KERNEL);
if (!env)
return NULL;
@@ -393,7 +393,7 @@ static struct test_mock_sb *setup_mock_sb(void)
{
struct test_mock_sb *ptr;
- ptr = kzalloc(sizeof(struct test_mock_sb), GFP_KERNEL);
+ ptr = kzalloc_obj(struct test_mock_sb, GFP_KERNEL);
if (!ptr)
return NULL;