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:   Sat, 30 Dec 2017 21:33:44 +0100
From:   SF Markus Elfring <elfring@...rs.sourceforge.net>
To:     b43-dev@...ts.infradead.org, linux-wireless@...r.kernel.org,
        netdev@...r.kernel.org, Kalle Valo <kvalo@...eaurora.org>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        kernel-janitors@...r.kernel.org
Subject: [PATCH] wireless: b43: Delete an error message for a failed memory
 allocation in b43_sdio_probe()

From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 30 Dec 2017 21:23:47 +0100

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
 drivers/net/wireless/broadcom/b43/sdio.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/b43/sdio.c b/drivers/net/wireless/broadcom/b43/sdio.c
index 59a521800694..5a6dbcf170f9 100644
--- a/drivers/net/wireless/broadcom/b43/sdio.c
+++ b/drivers/net/wireless/broadcom/b43/sdio.c
@@ -146,7 +146,6 @@ static int b43_sdio_probe(struct sdio_func *func,
 	sdio = kzalloc(sizeof(*sdio), GFP_KERNEL);
 	if (!sdio) {
 		error = -ENOMEM;
-		dev_err(&func->dev, "failed to allocate ssb bus\n");
 		goto err_disable_func;
 	}
 	error = ssb_bus_sdiobus_register(&sdio->ssb, func,
-- 
2.15.1

Powered by blists - more mailing lists