summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jfs/jfs_unicode.c')
-rw-r--r--fs/jfs/jfs_unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/jfs_unicode.c b/fs/jfs/jfs_unicode.c
index c7de6f5bbefc..0148e2e4d97a 100644
--- a/fs/jfs/jfs_unicode.c
+++ b/fs/jfs/jfs_unicode.c
@@ -121,7 +121,7 @@ int get_UCSname(struct component_name * uniName, struct dentry *dentry)
return -ENAMETOOLONG;
uniName->name =
- kmalloc((length + 1) * sizeof(wchar_t), GFP_NOFS);
+ kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS);
if (uniName->name == NULL)
return -ENOMEM;