Srinivas Kandagatla
313a72ff98
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:07:21 -08:00
..
2016-01-22 17:02:18 -08:00
2016-01-11 19:33:59 -08:00
2016-01-22 18:04:28 -05:00
2016-01-17 12:32:01 -08:00
2016-01-24 12:34:13 -08:00
2016-01-20 18:42:30 -08:00
2016-01-23 12:24:56 -08:00
2016-01-20 18:16:29 -08:00
2016-01-20 17:55:20 -08:00
2016-01-15 13:18:47 -08:00
2016-01-20 19:06:49 -08:00
2016-01-22 11:58:43 -08:00
2016-01-13 17:30:33 +09:00
2016-01-20 10:15:21 -08:00
2016-01-20 17:09:18 -08:00
2016-01-20 18:03:56 -08:00
2016-01-22 17:02:18 -08:00
2016-01-20 17:30:20 -08:00
2016-02-07 21:34:12 -08:00
2016-01-17 12:15:38 -08:00
2016-02-07 22:43:17 -08:00
2016-01-14 11:25:37 -08:00
2016-01-18 14:12:33 -05:00
2016-01-21 12:32:08 -08:00
2016-01-23 18:45:06 -08:00
2016-01-22 17:20:30 -08:00
2016-01-19 09:35:06 -08:00
2016-01-24 12:50:56 -08:00
2016-01-11 23:55:43 -05:00
2016-01-17 12:32:01 -08:00
2016-01-12 12:17:28 +01:00
2016-01-12 08:21:18 -07:00
2016-01-21 18:19:38 -08:00
2016-01-20 17:09:18 -08:00
2016-01-20 18:42:30 -08:00
2016-01-20 17:09:18 -08:00
2016-01-17 12:32:01 -08:00
2016-02-07 23:01:45 -08:00
2016-01-22 12:04:21 -08:00
2016-01-24 12:50:56 -08:00
2016-01-23 18:45:06 -08:00
2016-01-21 19:53:10 -05:00
2016-01-15 17:56:32 -08:00
2016-01-21 19:58:02 -08:00
2016-02-07 23:07:21 -08:00
2016-01-14 11:13:28 -08:00
2016-01-22 18:04:28 -05:00
2016-01-20 17:09:18 -08:00
2016-01-21 11:52:16 -08:00
2016-01-17 12:32:01 -08:00
2016-02-07 21:26:57 -08:00
2016-01-14 01:03:18 +01:00
2016-01-12 01:12:40 +01:00
2016-01-21 15:04:59 +01:00
2016-01-20 17:09:18 -08:00
2016-01-15 12:14:47 -08:00
2016-01-12 20:47:06 +02:00
2016-01-12 20:47:06 +02:00
2016-01-18 12:10:45 -08:00
2016-01-18 16:44:24 -08:00
2016-01-23 18:45:06 -08:00
2016-01-22 17:30:52 -08:00
2016-01-15 13:18:47 -08:00
2016-02-07 18:29:00 -08:00
2016-01-21 19:58:02 -08:00
2016-01-24 12:43:06 -08:00
2016-01-20 18:42:30 -08:00
2016-01-23 12:24:56 -08:00
2016-01-22 18:04:28 -05:00
2016-01-12 20:47:06 +02:00
2016-02-07 13:00:52 -08:00
2016-01-18 16:44:24 -08:00