Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 185bf873 authored by Dan Carpenter's avatar Dan Carpenter Committed by Al Viro
Browse files

ubifs: dereferencing an ERR_PTR in ubifs_mount()



d251ed27 "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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8b97b21e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2146,6 +2146,7 @@ static struct dentry *ubifs_mount(struct file_system_type *fs_type, int flags,
	if (IS_ERR(sb)) {
	if (IS_ERR(sb)) {
		err = PTR_ERR(sb);
		err = PTR_ERR(sb);
		kfree(c);
		kfree(c);
		goto out_close;
	}
	}


	if (sb->s_root) {
	if (sb->s_root) {