diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-06-17 17:20:40 +0000 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-06-23 10:44:39 -0700 |
commit | 04e1b65af2085d4102b2b5d2fd1e050f8ee63092 (patch) | |
tree | 72ebad03f725910cff12517d43f9fc5e072d78c8 /fs/btrfs/tests | |
parent | c6887cd11149d7325328749f06719071e6c725c6 (diff) | |
download | blackbird-op-linux-04e1b65af2085d4102b2b5d2fd1e050f8ee63092.tar.gz blackbird-op-linux-04e1b65af2085d4102b2b5d2fd1e050f8ee63092.zip |
Btrfs: fix error return code in btrfs_init_test_fs()
Fix to return a negative error code from the kern_mount() error handling
case instead of 0(ret is set to 0 by register_filesystem), as done
elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/tests')
-rw-r--r-- | fs/btrfs/tests/btrfs-tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c index 10eb249ef891..02223f3f78f4 100644 --- a/fs/btrfs/tests/btrfs-tests.c +++ b/fs/btrfs/tests/btrfs-tests.c @@ -68,7 +68,7 @@ int btrfs_init_test_fs(void) if (IS_ERR(test_mnt)) { printk(KERN_ERR "btrfs: cannot mount test file system\n"); unregister_filesystem(&test_type); - return ret; + return PTR_ERR(test_mnt); } return 0; } |