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-prev] [day] [month] [year] [list]
Date:	Fri, 22 Aug 2008 10:48:54 +0100
From:	Jonathan Cameron <jic23@....ac.uk>
To:	netdev@...r.kernel.org
Subject: [PATCH 2.6.27-rc4] smc91x bug fix to avoid null pointer dereference

From: Jonathan Cameron

Bug fix for typo in smc91x.c that results in null pointer dereference.

Signed-off-by: Jonathan Cameron <jic23@....ac.uk>
Acked-by: Nicolas Pitre <nico@....org>

--
Rebased against 2.6.27-rc4 and with Nicolas' ack.

--- a/drivers/net/smc91x.c	2008-08-21 14:49:28.000000000 +0100
+++ b/drivers/net/smc91x.c	2008-08-21 15:12:48.000000000 +0100
@@ -2255,7 +2255,7 @@ static int smc_drv_remove(struct platfor
 
 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs");
 	if (!res)
-		platform_get_resource(pdev, IORESOURCE_MEM, 0);
+		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	release_mem_region(res->start, SMC_IO_EXTENT);
 
 	free_netdev(ndev);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists