Skip to content

Commit

Permalink
ubifs: dereferencing an ERR_PTR in ubifs_mount()
Browse files Browse the repository at this point in the history
d251ed2 "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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
error27 authored and Al Viro committed Jun 20, 2011
1 parent 8b97b21 commit 185bf87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 185bf87

Please sign in to comment.