]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: core: fix the out-of-range leak in read/write()
authorZhengShunQian <zhengsq@rock-chips.com>
Wed, 30 Sep 2015 12:33:56 +0000 (13:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 11:09:43 +0000 (12:09 +0100)
commit5836550f5f248178cdfb6bbd39ceb5c89d944fdd
tree1c0b21a959e88862b3179c2515975ed8e6319f5c
parent755b54c2d7664b903bfb45b7d15cb67261530d08
nvmem: core: fix the out-of-range leak in read/write()

The position to read/write must be less than max
register size.

Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c