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:
parent
01a9f4308b
commit
08dfef4fbd
|
@ -89,7 +89,7 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
|
||||||
ptr = (unsigned long)(ref + 1);
|
ptr = (unsigned long)(ref + 1);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
if (ret == EOVERFLOW)
|
if (ret == -EOVERFLOW)
|
||||||
ret = -EMLINK;
|
ret = -EMLINK;
|
||||||
goto out;
|
goto out;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue