summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>2019-04-13 13:32:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-15 12:54:54 +0300
commitc4e22c2bf4c1f2bbd11d12de6c9b0d6cb1a2fb5d (patch)
tree4317d3fbc25f3cf78bc8b9be44e022160e221c97 /fs
parentc9ffc882f27dfe3239bf850c5eed2529b8c29642 (diff)
downloadlinux-c4e22c2bf4c1f2bbd11d12de6c9b0d6cb1a2fb5d.tar.xz
nvmem: core: fix read buffer in place
[ Upstream commit 2fe518fecb3a4727393be286db9804cd82ee2d91 ] 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@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions