diff options
author | Dan Carpenter <error27@gmail.com> | 2011-06-20 10:10:24 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 10:42:34 -0400 |
commit | 185bf87393afe6b966881e36c459949d90930a7a (patch) | |
tree | 203f91dbfdb21f29de119cf79ccfed3bf2b15d31 /fs/ubifs/super.c | |
parent | 8b97b21e0f4f59801d05a5c536417f04ecfb5603 (diff) | |
download | op-kernel-dev-185bf87393afe6b966881e36c459949d90930a7a.zip op-kernel-dev-185bf87393afe6b966881e36c459949d90930a7a.tar.gz |
ubifs: dereferencing an ERR_PTR in ubifs_mount()
d251ed271d5 "ubifs: fix sget races" left out the goto from this
error path so the static checkers complain that we're dereferencing
"sb" when it's an ERR_PTR.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 8c892c2..529be05 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2146,6 +2146,7 @@ static struct dentry *ubifs_mount(struct file_system_type *fs_type, int flags, if (IS_ERR(sb)) { err = PTR_ERR(sb); kfree(c); + goto out_close; } if (sb->s_root) { |