From: Joshua Kwan Date: Fri, 6 Jan 2006 08:09:45 +0000 (-0800) Subject: [PATCH] hfsplus oops fix X-Git-Tag: v2.6.16-rc1~936^2~287 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bd6a59b22fd3bd044bb14978b885bcd042a10e8e;p=~emulex%2Finfiniband.git [PATCH] hfsplus oops fix nls_utf8 is available, and the check in hfsplus_fill_super checks the wrong pointer for NULLness (it checks the saved nls, not the new one that it needs to use.) Signed-off-by: Joshua Kwan Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 8093351bd7c..6daaf7c755a 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -320,7 +320,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent) /* temporarily use utf8 to correctly find the hidden dir below */ nls = sbi->nls; sbi->nls = load_nls("utf8"); - if (!nls) { + if (!sbi->nls) { printk("HFS+: unable to load nls for utf8\n"); err = -EINVAL; goto cleanup;