summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/sunxi_sid.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla2015-11-17 10:12:41 +0100
committerGreg Kroah-Hartman2016-02-08 08:07:21 +0100
commit313a72ff983cc2e00ac4dcb791d40ebf2f9d5718 (patch)
treee4031aac8cd831d5e737acc4f52ca56f73ddabdb /drivers/nvmem/sunxi_sid.c
parentnvmem: mediatek: Add Mediatek EFUSE driver (diff)
downloadkernel-qcow2-linux-313a72ff983cc2e00ac4dcb791d40ebf2f9d5718.tar.gz
kernel-qcow2-linux-313a72ff983cc2e00ac4dcb791d40ebf2f9d5718.tar.xz
kernel-qcow2-linux-313a72ff983cc2e00ac4dcb791d40ebf2f9d5718.zip
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