summaryrefslogtreecommitdiff
path: root/drivers/nvmem/sunxi_sid.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-11-17 12:12:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 10:07:21 +0300
commit313a72ff983cc2e00ac4dcb791d40ebf2f9d5718 (patch)
treee4031aac8cd831d5e737acc4f52ca56f73ddabdb /drivers/nvmem/sunxi_sid.c
parent4c7e4fe3776693ee4554ca1b3a2c728c1f8f361a (diff)
downloadlinux-313a72ff983cc2e00ac4dcb791d40ebf2f9d5718.tar.xz
nvmem: core: return error for non word aligned access
nvmem providers have restrictions on register strides, so return error when users attempt to read/write buffers with sizes which are less than word size. Without this patch the userspace would continue to try as it does not get any error from the nvmem core, resulting in a hang or endless loop in userspace. Reported-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/sunxi_sid.c')
0 files changed, 0 insertions, 0 deletions