summaryrefslogtreecommitdiff
path: root/fs/squashfs/decompressor_single.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/squashfs/decompressor_single.c')
-rw-r--r--fs/squashfs/decompressor_single.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/decompressor_single.c b/fs/squashfs/decompressor_single.c
index 6f161887710b..1f1597104ca8 100644
--- a/fs/squashfs/decompressor_single.c
+++ b/fs/squashfs/decompressor_single.c
@@ -30,7 +30,7 @@ static void *squashfs_decompressor_create(struct squashfs_sb_info *msblk,
struct squashfs_stream *stream;
int err = -ENOMEM;
- stream = kmalloc(sizeof(*stream), GFP_KERNEL);
+ stream = kmalloc_obj(*stream, GFP_KERNEL);
if (stream == NULL)
goto out;