aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAshish Sangwan <ashishsangwan2@gmail.com>2012-07-21 07:05:17 -0400
committerJan Kara <jack@suse.cz>2012-08-14 18:22:56 -0400
commitdc141a402b9dc03a4188cd978a4cf149c397172c (patch)
treeacd14c58793a094e3b9253b285c26a7f0e749e63 /fs
parentbb2b6d19ec8b593b66402e2895c4314955b19833 (diff)
UDF: During mount free lvid_bh before rescanning with different blocksize
If s_lvid_bh is not freed and set to NULL before re-scanning partition with default block size, we might end up using wrong lvid in case s_lvid_bh is not updated in udf_load_logicalvolint during rescan. Signed-off-by: Ashish Sangwan <ashish.sangwan2@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r--fs/udf/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index dcbf98722afc..9f55f7981b7d 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -2000,6 +2000,8 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
2000 if (!silent) 2000 if (!silent)
2001 pr_notice("Rescanning with blocksize %d\n", 2001 pr_notice("Rescanning with blocksize %d\n",
2002 UDF_DEFAULT_BLOCKSIZE); 2002 UDF_DEFAULT_BLOCKSIZE);
2003 brelse(sbi->s_lvid_bh);
2004 sbi->s_lvid_bh = NULL;
2003 uopt.blocksize = UDF_DEFAULT_BLOCKSIZE; 2005 uopt.blocksize = UDF_DEFAULT_BLOCKSIZE;
2004 ret = udf_load_vrs(sb, &uopt, silent, &fileset); 2006 ret = udf_load_vrs(sb, &uopt, silent, &fileset);
2005 } 2007 }