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)
commit7c806883e143dc60439e6bdb3589700ebed1efaa
tree1c0b21a959e88862b3179c2515975ed8e6319f5c
parent9ffecb10283508260936b96022d4ee43a7798b4c
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