lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1484232945-45624-1-git-send-email-milan.stephan@fau.de>
Date:   Thu, 12 Jan 2017 15:55:45 +0100
From:   Milan Stephan <milan.stephan@....de>
To:     linux-kernel@...r.kernel.org
Cc:     linux-kernel@...cs.fau.de, Chris Mason <clm@...com>,
        Josef Bacik <jbacik@...com>, David Sterba <dsterba@...e.com>,
        linux-btrfs@...r.kernel.org, Pan Bian <bianpan2016@....com>,
        Milan Stephan <milan.stephan+linux@....de>,
        Thomas Preisner <thomas.preisner+linux@....de>
Subject: [PATCH] btrfs: uuid-tree: btrfs_uuid_tree_iterate: fix improper return value

From: Milan Stephan <milan.stephan+linux@....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@....com>
Signed-off-by: Milan Stephan <milan.stephan+linux@....de>
Signed-off-by: Thomas Preisner <thomas.preisner+linux@....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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ