Skip to content

Commit 9054760

Browse files
author
Al Viro
committed
lmLogOpen() broken failure exit
Callers of lmLogOpen() expect it to return -E... on failure exits, which is what it returns, except for the case of blkdev_get_by_dev() failure. It that case lmLogOpen() return the error with the wrong sign... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com>
1 parent 3ece48a commit 9054760

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/jfs/jfs_logmgr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ int lmLogOpen(struct super_block *sb)
11231123
bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL,
11241124
log);
11251125
if (IS_ERR(bdev)) {
1126-
rc = -PTR_ERR(bdev);
1126+
rc = PTR_ERR(bdev);
11271127
goto free;
11281128
}
11291129

0 commit comments

Comments
 (0)