summaryrefslogtreecommitdiff
path: root/fs/hpfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs')
-rw-r--r--fs/hpfs/dnode.c2
-rw-r--r--fs/hpfs/super.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/hpfs/dnode.c b/fs/hpfs/dnode.c
index 4ada525c5c43..dde764ebe246 100644
--- a/fs/hpfs/dnode.c
+++ b/fs/hpfs/dnode.c
@@ -33,7 +33,7 @@ int hpfs_add_pos(struct inode *inode, loff_t *pos)
if (hpfs_inode->i_rddir_off[i] == pos)
return 0;
if (!(i&0x0f)) {
- ppos = kmalloc_array(i + 0x11, sizeof(loff_t *), GFP_NOFS);
+ ppos = kmalloc_objs(loff_t *, i + 0x11, GFP_NOFS);
if (!ppos) {
pr_err("out of memory for position list\n");
return -ENOMEM;
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c
index 371aa6de8075..0f17b7710ae5 100644
--- a/fs/hpfs/super.c
+++ b/fs/hpfs/super.c
@@ -513,7 +513,7 @@ static int hpfs_fill_super(struct super_block *s, struct fs_context *fc)
struct hpfs_dirent *de = NULL;
struct quad_buffer_head qbh;
- sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
+ sbi = kzalloc_obj(*sbi, GFP_KERNEL);
if (!sbi) {
return -ENOMEM;
}
@@ -715,7 +715,7 @@ static int hpfs_init_fs_context(struct fs_context *fc)
{
struct hpfs_fc_context *ctx;
- ctx = kzalloc(sizeof(struct hpfs_fc_context), GFP_KERNEL);
+ ctx = kzalloc_obj(struct hpfs_fc_context, GFP_KERNEL);
if (!ctx)
return -ENOMEM;