btrfs-progs: fix overflow check in btrfs_insert_inode_ref

Resolves-coverity-id: 1260247
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2014-12-30 15:16:17 +01:00
parent 01a9f4308b
commit 08dfef4fbd
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
ptr = (unsigned long)(ref + 1);
ret = 0;
} else if (ret < 0) {
if (ret == EOVERFLOW)
if (ret == -EOVERFLOW)
ret = -EMLINK;
goto out;
} else {