Re: [PATCH 30/30] media: cec-core: fix a bug at cec_error_inj_write()

2018-03-23 Thread Hans Verkuil
On 03/23/18 12:57, Mauro Carvalho Chehab wrote: > If the adapter doesn't have error_inj_parse_line() ops, the > write() logic won't return -EINVAL, but, instead, it will keep > looping, because "count" is a non-negative number. > > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Hans Verkuil

[PATCH 30/30] media: cec-core: fix a bug at cec_error_inj_write()

2018-03-23 Thread Mauro Carvalho Chehab
If the adapter doesn't have error_inj_parse_line() ops, the write() logic won't return -EINVAL, but, instead, it will keep looping, because "count" is a non-negative number. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/cec/cec-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 delet