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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1493189954-10049-1-git-send-email-os@iscas.ac.cn>
Date:   Tue, 25 Apr 2017 23:59:14 -0700
From:   Heloise <os@...as.ac.cn>
To:     akpm@...ux-foundation.org, fabf@...net.be, viro@...iv.linux.org.uk,
        jack@...e.cz, mszeredi@...hat.com, mikulas@...bright.com
Cc:     linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
        Heloise <os@...as.ac.cn>
Subject: [PATCH] fs:affs:fix sb_bread() return value

When the function sb_bread() fails, the return value should
be -EIO, fix it.

Signed-off-by: Heloise <os@...as.ac.cn>
---
 fs/affs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/affs/super.c b/fs/affs/super.c
index c2c27a8..df1f4fe 100644
--- a/fs/affs/super.c
+++ b/fs/affs/super.c
@@ -419,7 +419,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
 	boot_bh = sb_bread(sb, 0);
 	if (!boot_bh) {
 		pr_err("Cannot read boot block\n");
-		return -EINVAL;
+		return -EIO;
 	}
 	memcpy(sig, boot_bh->b_data, 4);
 	brelse(boot_bh);
-- 
2.1.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ