Johan Hovold fd00cf81a9 serdev: fix receive_buf return value when no callback
The receive_buf callback is supposed to return the number of bytes
processed and should specifically not return a negative errno.

Due to missing sanity checks in the serdev tty-port controller, a driver
not providing a receive_buf callback could cause the flush_to_ldisc()
worker to spin in a tight loop when the tty buffer pointers are
incremented with -EINVAL (-22).

The missing sanity checks have now been added to the tty-port
controller, but let's fix up the serdev-controller helper as well.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 16:00:50 +01:00
..
2017-11-16 14:05:12 -08:00
2017-11-14 16:49:31 -08:00
2017-11-14 14:44:04 -08:00
2017-11-16 09:15:57 -08:00
2017-11-15 14:54:53 -08:00
2017-11-15 14:54:53 -08:00
2017-11-13 10:17:35 -08:00
2017-11-13 21:14:07 -08:00
2017-11-18 11:22:04 -08:00
2017-11-13 21:14:07 -08:00
2017-11-13 01:34:49 +01:00
2017-11-15 13:28:48 -08:00
2017-06-08 18:52:36 -07:00
2017-11-23 10:56:35 +01:00
2017-11-22 21:40:54 +01:00
2017-09-07 21:11:05 -07:00
2017-07-03 16:56:28 -06:00
2017-11-15 18:21:04 -08:00
2017-08-30 14:40:40 +02:00
2017-11-15 10:56:56 -08:00
2017-09-04 00:06:02 +02:00
2017-11-13 21:05:31 -08:00
2017-11-17 09:51:57 -08:00
2017-11-14 16:54:12 -08:00
2017-08-24 13:23:03 -07:00
2017-11-15 18:21:04 -08:00
2017-07-17 13:42:48 +02:00
2017-11-05 16:42:02 -08:00
2017-08-07 17:22:14 +02:00
2017-11-13 01:41:20 +01:00
2017-11-18 11:22:04 -08:00
2017-11-17 14:58:01 -08:00
2017-11-15 18:21:06 -08:00
2017-06-21 14:37:12 -04:00
2017-11-17 16:10:04 -08:00
2017-11-17 14:58:01 -08:00
2017-11-15 18:21:05 -08:00
2017-11-17 09:51:57 -08:00
2017-11-14 11:23:05 +01:00
2017-11-15 10:56:56 -08:00
2017-11-15 18:21:01 -08:00
2017-11-17 16:10:04 -08:00
2017-10-12 15:41:05 +02:00
2017-11-15 18:21:05 -08:00
2017-11-15 18:21:01 -08:00
2017-10-19 10:08:56 +02:00
2017-10-07 10:45:02 -06:00
2017-08-28 20:51:22 +02:00
2017-11-15 18:21:04 -08:00
2017-11-17 09:51:57 -08:00
2017-11-17 09:51:57 -08:00
2017-11-15 13:46:33 -08:00
2017-11-15 18:21:04 -08:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2017-11-17 16:10:00 -08:00
2017-07-25 18:05:25 +02:00
2017-11-15 15:01:28 -08:00
2017-10-20 09:37:32 +02:00
2017-11-15 18:21:03 -08:00
2017-11-15 18:21:06 -08:00
2017-11-09 10:23:28 +01:00
2017-11-17 14:58:01 -08:00
2017-08-06 20:55:29 -07:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-13 01:33:48 +01:00
2017-08-16 16:28:47 -07:00
2017-11-17 20:14:10 -08:00
2017-11-15 18:21:04 -08:00
2017-11-07 12:22:21 +01:00
2017-11-15 20:42:10 -08:00
2017-07-06 16:24:30 -07:00
2017-11-15 20:42:10 -08:00
2017-08-16 16:28:47 -07:00
2017-11-15 18:21:01 -08:00
2017-11-15 18:21:06 -08:00
2017-11-15 18:21:01 -08:00
2017-11-17 14:58:01 -08:00
2017-10-11 22:36:54 -04:00
2017-11-14 18:01:46 -08:00
2017-07-24 17:50:37 +02:00
2017-10-04 10:29:22 +02:00
2017-08-15 09:02:07 -07:00
2017-08-15 09:02:08 -07:00