Commit 06f67437 authored by Kent Overstreet's avatar Kent Overstreet

fs/super.c: improve get_tree() error message

seeing an odd bug where we fail to correctly return an error from
.get_tree():

https://syzkaller.appspot.com/bug?extid=c0360e8367d6d8d04a66

we need to be able to distinguish between accidently returning a
positive error (as implied by the log) and no error.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bdbdd475
...@@ -1802,8 +1802,8 @@ int vfs_get_tree(struct fs_context *fc) ...@@ -1802,8 +1802,8 @@ int vfs_get_tree(struct fs_context *fc)
return error; return error;
if (!fc->root) { if (!fc->root) {
pr_err("Filesystem %s get_tree() didn't set fc->root\n", pr_err("Filesystem %s get_tree() didn't set fc->root, returned %i\n",
fc->fs_type->name); fc->fs_type->name, error);
/* We don't know what the locking state of the superblock is - /* We don't know what the locking state of the superblock is -
* if there is a superblock. * if there is a superblock.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment