]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] rtl28xxu: fix control message flaws
authorAntti Palosaari <crope@iki.fi>
Tue, 6 Oct 2015 03:22:23 +0000 (00:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 20 Oct 2015 16:30:55 +0000 (14:30 -0200)
commit15b1e617a29dd434175bfdfddea29333e8282675
treef9a12d0e0edd11138628d4d1c42840a3f3ab3c6e
parent651bd7066daa9455c62ba5b914af379586b3249f
[media] rtl28xxu: fix control message flaws

Add lock to prevent concurrent access for control message as control
message function uses shared buffer. Without the lock there may be
remote control polling which messes the buffer causing IO errors.
Increase buffer size and add check for maximum supported message
length.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=103391
Fixes: c56222a6b25c ("[media] rtl28xxu: move usb buffers to state")
Cc: <stable@vger.kernel.org> # 4.0+
Signed-off-by: Antti Palosaari <crope@iki.fi>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c
drivers/media/usb/dvb-usb-v2/rtl28xxu.h