[media] cec: limit the size of the transmit queue
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 17 Jul 2016 14:40:05 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 16:25:32 +0000 (13:25 -0300)
commit11065f8531ed33d5e847a36ad64231ee599d4996
treeb02f216395f726c0018ed0f8ffda3b5f746f2e16
parent045344c3c1478f8d03a1a589d645fe10c3a23f77
[media] cec: limit the size of the transmit queue

The size of the transmit queue was unlimited, which meant that
in non-blocking mode you could flood the CEC adapter with messages
to be transmitted.

Limit this to 18 messages.

Also print the number of pending transmits and the timeout value
in the status debugfs file.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-adap.c
include/media/cec.h
This page took 0.026045 seconds and 5 git commands to generate.