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] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM4PR0501MB21941B05C805BF53E94ECF03B1B10@AM4PR0501MB2194.eurprd05.prod.outlook.com>
Date:   Thu, 3 Aug 2017 14:48:34 +0000
From:   Oleksandr Shamray <oleksandrs@...lanox.com>
To:     kbuild test robot <lkp@...el.com>
CC:     "kbuild-all@...org" <kbuild-all@...org>,
        "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
        "arnd@...db.de" <arnd@...db.de>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        "openbmc@...ts.ozlabs.org" <openbmc@...ts.ozlabs.org>,
        "joel@....id.au" <joel@....id.au>,
        "jiri@...nulli.us" <jiri@...nulli.us>,
        "tklauser@...tanz.ch" <tklauser@...tanz.ch>,
        "linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
        "mec@...ut.net" <mec@...ut.net>,
        "vadimp@...llanox.com" <vadimp@...llanox.com>,
        system-sw-low-level <system-sw-low-level@...lanox.com>,
        Jiri Pirko <jiri@...lanox.com>
Subject: RE: [PATCH] drivers: jtag: fix resource_size.cocci warnings

> -----Original Message-----
> From: kbuild test robot [mailto:lkp@...el.com]
> Sent: Thursday, August 3, 2017 5:36 PM
> To: Oleksandr Shamray <oleksandrs@...lanox.com>
> Cc: kbuild-all@...org; gregkh@...uxfoundation.org; arnd@...db.de; linux-
> kernel@...r.kernel.org; linux-arm-kernel@...ts.infradead.org;
> devicetree@...r.kernel.org; openbmc@...ts.ozlabs.org; joel@....id.au;
> jiri@...nulli.us; tklauser@...tanz.ch; linux-serial@...r.kernel.org;
> mec@...ut.net; vadimp@...llanox.com; system-sw-low-level <system-sw-
> low-level@...lanox.com>; Oleksandr Shamray <oleksandrs@...lanox.com>;
> Jiri Pirko <jiri@...lanox.com>
> Subject: [PATCH] drivers: jtag: fix resource_size.cocci warnings
> 
> drivers/jtag/jtag-aspeed.c:724:37-40: ERROR: Missing resource_size with res
> 
> 
>  Use resource_size function on resource object  instead of explicit computation.
> 
> Generated by: scripts/coccinelle/api/resource_size.cocci
> 
> Fixes: acf0c42bb646 ("drivers: jtag: Add Aspeed SoC 24xx and 25xx families
> JTAG master driver")
> CC: Oleksandr Shamray <oleksandrs@...lanox.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>

Acked-by: Oleksandr Shamray <oleksandrs@...lanox.com>

> ---
> 
>  jtag-aspeed.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/jtag/jtag-aspeed.c
> +++ b/drivers/jtag/jtag-aspeed.c
> @@ -721,7 +721,7 @@ int aspeed_jtag_init(struct platform_dev
>  	return 0;
> 
>  out_region:
> -	release_mem_region(res->start, res->end - res->start + 1);
> +	release_mem_region(res->start, resource_size(res));
>  	return err;
>  }
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ