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, 8 Feb 2016 08:31:36 +0000
From:	Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To:	Axel Lin <axel.lin@...ics.com>,
	Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc:	Philipp Zabel <p.zabel@...gutronix.de>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvmem: imx-ocotp: Fix return value of imx_ocotp_read



On 02/02/16 13:29, Axel Lin wrote:
> imx_ocotp_read() should return 0 on success.
>
> Signed-off-by: Axel Lin <axel.lin@...ics.com>
> ---
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>

I will queue this patch via Greg's charmisc tree.

thanks,
srini
>   drivers/nvmem/imx-ocotp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
> index b7971d4..d7796eb 100644
> --- a/drivers/nvmem/imx-ocotp.c
> +++ b/drivers/nvmem/imx-ocotp.c
> @@ -51,7 +51,7 @@ static int imx_ocotp_read(void *context, const void *reg, size_t reg_size,
>   		val += 4;
>   	}
>
> -	return (i - index) * 4;
> +	return 0;
>   }
>
>   static int imx_ocotp_write(void *context, const void *data, size_t count)
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ