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:	Fri, 4 Dec 2009 12:48:30 -0500
From:	"H Hartley Sweeten" <hartleys@...ionengravers.com>
To:	<linux-kernel@...r.kernel.org>
Cc:	<wim@...ana.be>, <hmh@....eng.br>, <tom.leiming@...il.com>
Subject: rm9k_wdt.c: use resource_size()

Use resource_size().

Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Wim Van Sebroeck <wim@...ana.be>
Cc: Henrique de Moraes Holschuh <hmh@....eng.br>
Cc: Ming Lei <tom.leiming@...il.com>

---

diff --git a/drivers/watchdog/rm9k_wdt.c b/drivers/watchdog/rm9k_wdt.c
index bb66958..198f748 100644
--- a/drivers/watchdog/rm9k_wdt.c
+++ b/drivers/watchdog/rm9k_wdt.c
@@ -360,7 +360,7 @@ static int __devinit wdt_gpi_probe(struct platform_device *pdv)
 	if (unlikely(!rr || !ri || !rc))
 		return -ENXIO;
 
-	wd_regs = ioremap_nocache(rr->start, rr->end + 1 - rr->start);
+	wd_regs = ioremap_nocache(rr->start, resource_size(rr));
 	if (unlikely(!wd_regs))
 		return -ENOMEM;
 	wd_irq = ri->start; 
--
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