mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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>
This commit is contained in:
parent
3ece48a746
commit
9054760ff5
@ -1123,7 +1123,7 @@ int lmLogOpen(struct super_block *sb)
|
||||
bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL,
|
||||
log);
|
||||
if (IS_ERR(bdev)) {
|
||||
rc = -PTR_ERR(bdev);
|
||||
rc = PTR_ERR(bdev);
|
||||
goto free;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user