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>] [day] [month] [year] [list]
Date:	Mon, 7 Jul 2014 18:06:28 +0800
From:	Gu Zheng <guz.fnst@...fujitsu.com>
To:	Jens <axboe@...nel.dk>
CC:	linux-kernel <linux-kernel@...r.kernel.org>,
	Kent <kmo@...erainc.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] bio-integrity: remove the needless fail handle of bip_slab
 creating

bip_slab is created with SLAB_PANIC, so the fail handle is needless,
remove it.

Signed-off-by: Gu Zheng <guz.fnst@...fujitsu.com>
---
 block/bio-integrity.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/block/bio-integrity.c b/block/bio-integrity.c
index 9e24106..56754c4 100644
--- a/block/bio-integrity.c
+++ b/block/bio-integrity.c
@@ -652,6 +652,4 @@ void __init bio_integrity_init(void)
 				     sizeof(struct bio_integrity_payload) +
 				     sizeof(struct bio_vec) * BIP_INLINE_VECS,
 				     0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
-	if (!bip_slab)
-		panic("Failed to create slab\n");
 }
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ