Skip to content

Commit 06f6743

Browse files
author
Kent Overstreet
committed
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 <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent bdbdd47 commit 06f6743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/super.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,8 +1802,8 @@ int vfs_get_tree(struct fs_context *fc)
18021802
return error;
18031803

18041804
if (!fc->root) {
1805-
pr_err("Filesystem %s get_tree() didn't set fc->root\n",
1806-
fc->fs_type->name);
1805+
pr_err("Filesystem %s get_tree() didn't set fc->root, returned %i\n",
1806+
fc->fs_type->name, error);
18071807
/* We don't know what the locking state of the superblock is -
18081808
* if there is a superblock.
18091809
*/

0 commit comments

Comments
 (0)