Skip to content
Commit 7c806883 authored by ZhengShunQian's avatar ZhengShunQian Committed by Greg Kroah-Hartman
Browse files

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: default avatarZhengShunQian <zhengsq@rock-chips.com>
Acked-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ffecb10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment