From: Milan Stephan <milan.stephan@fau.de>
To: linux-kernel@vger.kernel.org
Cc: linux-kernel@i4.cs.fau.de, Chris Mason <clm@fb.com>,
Josef Bacik <jbacik@fb.com>, David Sterba <dsterba@suse.com>,
linux-btrfs@vger.kernel.org, Pan Bian <bianpan2016@163.com>,
Milan Stephan <milan.stephan+linux@fau.de>,
Thomas Preisner <thomas.preisner+linux@fau.de>
Subject: [PATCH] btrfs: uuid-tree: btrfs_uuid_tree_iterate: fix improper return value
Date: Thu, 12 Jan 2017 15:55:45 +0100 [thread overview]
Message-ID: <1484232945-45624-1-git-send-email-milan.stephan@fau.de> (raw)
From: Milan Stephan <milan.stephan+linux@fau.de>
Fixes return value of btrfs_uuid_tree_iterate to catch and return errors
when calling btrfs_alloc_path.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188731
Reported-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Milan Stephan <milan.stephan+linux@fau.de>
Signed-off-by: Thomas Preisner <thomas.preisner+linux@fau.de>
---
fs/btrfs/uuid-tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c
index 161342b..12f873d 100644
--- a/fs/btrfs/uuid-tree.c
+++ b/fs/btrfs/uuid-tree.c
@@ -354,5 +354,5 @@ int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info,
btrfs_free_path(path);
if (ret)
btrfs_warn(fs_info, "btrfs_uuid_tree_iterate failed %d", ret);
- return 0;
+ return ret;
}
--
2.7.4
next reply other threads:[~2017-01-12 14:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 14:55 Milan Stephan [this message]
2017-01-12 15:03 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484232945-45624-1-git-send-email-milan.stephan@fau.de \
--to=milan.stephan@fau.de \
--cc=bianpan2016@163.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=jbacik@fb.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
--cc=milan.stephan+linux@fau.de \
--cc=thomas.preisner+linux@fau.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®