remarkable-linux/drivers/nvmem
Srinivas Kandagatla 2f9ba5b2f8 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>
2016-02-07 23:09:13 -08:00
..
core.c nvmem: core: return error for non word aligned access 2016-02-07 23:09:13 -08:00
imx-ocotp.c nvmem: imx-ocotp: Add i.MX6 OCOTP driver 2015-10-04 12:06:13 +01:00
Kconfig nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
Makefile nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
mxs-ocotp.c nvmem: add driver for ocotp in i.MX23 and i.MX28 2015-10-04 12:06:13 +01:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07:00
rockchip-efuse.c nvmem: rockchip_efuse_regmap_config can be static 2015-10-04 12:08:14 +01:00
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00
vf610-ocotp.c nvmem: Add Vybrid OCOTP support 2015-10-04 12:06:13 +01:00