Skip to content

Commit 597861d

Browse files
committed
Merge tag 'for_v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull quota and isofs updates from Jan Kara: "Fix a memory leak in isofs and a cleanup of includes in quota" * tag 'for_v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: dquot.c: get rid of include ../internal.h isofs: avoid memory leak in iocharset
2 parents 2edc8f9 + 344044d commit 597861d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

fs/isofs/inode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,6 @@ static int isofs_fill_super(struct super_block *s, struct fs_context *fc)
948948
goto out_no_inode;
949949
}
950950

951-
kfree(opt->iocharset);
952-
953951
return 0;
954952

955953
/*
@@ -987,7 +985,6 @@ static int isofs_fill_super(struct super_block *s, struct fs_context *fc)
987985
brelse(bh);
988986
brelse(pri_bh);
989987
out_freesbi:
990-
kfree(opt->iocharset);
991988
kfree(sbi);
992989
s->s_fs_info = NULL;
993990
return error;
@@ -1528,7 +1525,10 @@ static int isofs_get_tree(struct fs_context *fc)
15281525

15291526
static void isofs_free_fc(struct fs_context *fc)
15301527
{
1531-
kfree(fc->fs_private);
1528+
struct isofs_options *opt = fc->fs_private;
1529+
1530+
kfree(opt->iocharset);
1531+
kfree(opt);
15321532
}
15331533

15341534
static const struct fs_context_operations isofs_context_ops = {

fs/quota/dquot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
#include <linux/quotaops.h>
8181
#include <linux/blkdev.h>
8282
#include <linux/sched/mm.h>
83-
#include "../internal.h" /* ugh */
8483

8584
#include <linux/uaccess.h>
8685

0 commit comments

Comments
 (0)