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: <20121113063729.GA11892@b29396-Latitude-E6410>
Date:	Tue, 13 Nov 2012 14:37:30 +0800
From:	Dong Aisheng <b29396@...escale.com>
To:	Axel Lin <axel.lin@...ics.com>
CC:	Linus Walleij <linus.walleij@...aro.org>,
	Shawn Guo <shawn.guo@...aro.org>,
	Dong Aisheng <dong.aisheng@...aro.org>,
	Devendra Naga <devendra.aaru@...il.com>,
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pinctrl: imx: Fix the logic checking if not able to find
 pin reg map

On Tue, Nov 13, 2012 at 09:00:07AM +0800, Axel Lin wrote:
> Current code sets "pin_reg = &info->pin_regs[i];" in each loop iteration,
> so in the case of no-match, pin_reg is not NULL.
> 
> Signed-off-by: Axel Lin <axel.lin@...ics.com>

Thanks for the fix.
Acked-by: Dong Aisheng <dong.aisheng@...aro.org>

Regards
Dong Aisheng
> ---
>  drivers/pinctrl/pinctrl-imx.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
> index f3d2384..525a2c8 100644
> --- a/drivers/pinctrl/pinctrl-imx.c
> +++ b/drivers/pinctrl/pinctrl-imx.c
> @@ -71,7 +71,7 @@ static const struct imx_pin_reg *imx_find_pin_reg(
>  			break;
>  	}
>  
> -	if (!pin_reg) {
> +	if (i == info->npin_regs) {
>  		dev_err(info->dev, "Pin(%s): unable to find pin reg map\n",
>  			info->pins[pin].name);
>  		return NULL;
> -- 
> 1.7.9.5
> 
> 
> 
> --
> 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/
> 

--
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