aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_dtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jfs/jfs_dtree.c')
-rw-r--r--fs/jfs/jfs_dtree.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index df25ecc418af..97c66f913393 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -592,9 +592,7 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data,
592 struct component_name ciKey; 592 struct component_name ciKey;
593 struct super_block *sb = ip->i_sb; 593 struct super_block *sb = ip->i_sb;
594 594
595 ciKey.name = 595 ciKey.name = kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t), GFP_NOFS);
596 (wchar_t *) kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t),
597 GFP_NOFS);
598 if (ciKey.name == 0) { 596 if (ciKey.name == 0) {
599 rc = -ENOMEM; 597 rc = -ENOMEM;
600 goto dtSearch_Exit2; 598 goto dtSearch_Exit2;
@@ -957,9 +955,7 @@ static int dtSplitUp(tid_t tid,
957 smp = split->mp; 955 smp = split->mp;
958 sp = DT_PAGE(ip, smp); 956 sp = DT_PAGE(ip, smp);
959 957
960 key.name = 958 key.name = kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t), GFP_NOFS);
961 (wchar_t *) kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t),
962 GFP_NOFS);
963 if (key.name == 0) { 959 if (key.name == 0) {
964 DT_PUTPAGE(smp); 960 DT_PUTPAGE(smp);
965 rc = -ENOMEM; 961 rc = -ENOMEM;