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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0D753D10438DA54287A00B02708426976367AEB618@AUSP01VMBX24.collaborationhost.net>
Date:	Tue, 9 Mar 2010 10:50:32 -0600
From:	H Hartley Sweeten <hartleys@...ionengravers.com>
To:	Samuel Ortiz <sameo@...ux.intel.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
CC:	Paul Mundt <lethal@...ux-sh.org>
Subject: RE: [PATCH] mfd: Fix sm501 requested region size

On Tuesday, March 09, 2010 1:10 AM, Samuel Ortiz wrote:
>
> We should only request for the MFD used region, not the whole thing.
>
> Signed-off-by: Samuel Ortiz <sameo@...ux.intel.com>

Reviewed-by: H Hartley Sweeten <hsweeten@...ionengravers.com>

Sorry about that...

> ---
>  drivers/mfd/sm501.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
> index dc9ea95..497712f 100644
> --- a/drivers/mfd/sm501.c
> +++ b/drivers/mfd/sm501.c
> @@ -1430,7 +1430,7 @@ static int __devinit sm501_plat_probe(struct platform_device *dev)
>  	}
>  
>  	sm->regs_claim = request_mem_region(sm->io_res->start,
> -					    resource_size(sm->io_res), "sm501");
> +					    0x100, "sm501");
>  
>  	if (sm->regs_claim == NULL) {
>  		dev_err(&dev->dev, "cannot claim registers\n");
> @@ -1644,7 +1644,7 @@ static int __devinit sm501_pci_probe(struct pci_dev *dev,
>  	sm->mem_res = &dev->resource[0];
>  
>  	sm->regs_claim = request_mem_region(sm->io_res->start,
> -					    resource_size(sm->io_res), "sm501");
> +					    0x100, "sm501");
>  	if (sm->regs_claim == NULL) {
>  		dev_err(&dev->dev, "cannot claim registers\n");
>  		err= -EBUSY;
--
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