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, 26 Jul 2008 14:18:32 +0200
From:	Michael Buesch <mb@...sch.de>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	David Brownell <david-b@...bell.net>,
	"linux-kernel" <linux-kernel@...r.kernel.org>,
	"Torgil Svensson" <torgil.svensson@...il.com>
Subject: [PATCH] spi-gpio: Fix returned error code

This fixes the returned error code in case spi_new_device failed.

Reported-by: Torgil Svensson <torgil.svensson@...il.com>
Signed-off-by: Michael Buesch <mb@...sch.de>


Index: linux-next/drivers/spi/spi_gpio.c
===================================================================
--- linux-next.orig/drivers/spi/spi_gpio.c	2008-07-26 14:16:32.000000000 +0200
+++ linux-next/drivers/spi/spi_gpio.c	2008-07-26 14:16:54.000000000 +0200
@@ -167,6 +167,7 @@ static int spi_gpio_probe(struct platfor
 	if (err)
 		goto err_bi_setup;
 	sp->bi.controller_data = sp;
+	err = -ENOMEM;
 	spidev = spi_new_device(master, &sp->bi);
 	if (!spidev)
 		goto err_new_dev;

-- 
Greetings Michael.
--
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