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:	Sat, 2 Apr 2016 06:17:10 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Jake Oshins <jakeo@...rosoft.com>
Cc:	kbuild-all@...org, linux-pci@...r.kernel.org,
	gregkh@...uxfoundation.org, kys@...rosoft.com,
	linux-kernel@...r.kernel.org, devel@...uxdriverproject.org,
	olaf@...fle.de, apw@...onical.com, vkuznets@...hat.com,
	haiyangz@...rosoft.com, haddenh@...rosoft.com,
	Jake Oshins <jakeo@...rosoft.com>
Subject: [PATCH] drivers:hv: fix resource_size.cocci warnings

drivers/hv/vmbus_drv.c:1099:15-18: ERROR: Missing resource_size with fb_mmio


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

CC: Jake Oshins <jakeo@...rosoft.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---

 vmbus_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -1096,7 +1096,7 @@ static int vmbus_acpi_remove(struct acpi
 	if (hyperv_mmio) {
 		if (fb_mmio) {
 			__release_region(hyperv_mmio, fb_mmio->start,
-					 fb_mmio->end - fb_mmio->start + 1);
+					 resource_size(fb_mmio));
 			fb_mmio = NULL;
 		}
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ