diff options
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 3786eca2a905..a85b044cf39e 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -608,6 +608,8 @@ again: | |||
608 | key.offset = split; | 608 | key.offset = split; |
609 | 609 | ||
610 | ret = btrfs_search_slot(trans, root, &key, path, -1, 1); | 610 | ret = btrfs_search_slot(trans, root, &key, path, -1, 1); |
611 | if (ret < 0) | ||
612 | goto out; | ||
611 | if (ret > 0 && path->slots[0] > 0) | 613 | if (ret > 0 && path->slots[0] > 0) |
612 | path->slots[0]--; | 614 | path->slots[0]--; |
613 | 615 | ||