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:	Mon, 11 Mar 2013 10:14:27 +0530
From:	Prabhakar Lad <prabhakar.csengg@...il.com>
To:	Alexandru Gheorghiu <gheorghiuandru@...il.com>
Cc:	Mauro Carvalho Chehab <mchehab@...hat.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
	dlos <davinci-linux-open-source@...ux.davincidsp.com>
Subject: Re: [PATCH] Drivers: staging: media: davinci_vpfe: Use resource_size function

Hi Alexandru,

Thanks for the patch!

On Sun, Mar 10, 2013 at 5:44 PM, Alexandru Gheorghiu
<gheorghiuandru@...il.com> wrote:
> Use resource_size function on resource object instead of explicit
> computation.
>
> Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@...il.com>

Acked-by: Lad, Prabhakar <prabhakar.csengg@...il.com>

Regards,
--Prabhakar Lad

> ---
>  drivers/staging/media/davinci_vpfe/dm365_ipipeif.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
> index c8cae51..b2f4ef8 100644
> --- a/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
> +++ b/drivers/staging/media/davinci_vpfe/dm365_ipipeif.c
> @@ -1065,7 +1065,6 @@ vpfe_ipipeif_cleanup(struct vpfe_ipipeif_device *ipipeif,
>         iounmap(ipipeif->ipipeif_base_addr);
>         res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
>         if (res)
> -               release_mem_region(res->start,
> -                                       res->end - res->start + 1);
> +               release_mem_region(res->start, resource_size(res));
>
>  }
> --
> 1.7.10.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
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