diff options
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r-- | drivers/of/unittest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index ecee50d10d14..722537e14848 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c | |||
@@ -156,7 +156,7 @@ static void __init of_unittest_dynamic(void) | |||
156 | } | 156 | } |
157 | 157 | ||
158 | /* Array of 4 properties for the purpose of testing */ | 158 | /* Array of 4 properties for the purpose of testing */ |
159 | prop = kzalloc(sizeof(*prop) * 4, GFP_KERNEL); | 159 | prop = kcalloc(4, sizeof(*prop), GFP_KERNEL); |
160 | if (!prop) { | 160 | if (!prop) { |
161 | unittest(0, "kzalloc() failed\n"); | 161 | unittest(0, "kzalloc() failed\n"); |
162 | return; | 162 | return; |