[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 4 Apr 2019 12:01:25 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@...aro.org>
Cc: linux-kernel@...r.kernel.org, niklas.cassel@...aro.org
Subject: Re: [PATCH] nvmem: core: fix read buffer in place
On 20/03/2019 19:32, Jorge Ramirez-Ortiz wrote:
> When the bit_offset in the cell is zero, the pointer to the msb will
> not be properly initialized (ie, will still be pointing to the first
> byte in the buffer).
>
> This being the case, if there are bits to clear in the msb, those will
> be left untouched while the mask will incorrectly clear bit positions
> on the first byte.
>
> This commit also makes sure that any byte unused in the cell is
> cleared.
>
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@...aro.org>
Applied Thanks,
Srini
Powered by blists - more mailing lists