[media] rtl28xxu: fix buffer overflow when probing Rafael Micro r820t tuner
authorGianluca Gennari <gennarone@gmail.com>
Sun, 2 Jun 2013 20:24:24 +0000 (17:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Jun 2013 18:25:34 +0000 (15:25 -0300)
commita908eb9936ba06678720226feed891d01827066f
treeb71b42990faa60e8a730d7058c70fae3eecf9a61
parentaf44ad5edd1eb6ca92ed5be48e0004e1f04bf219
[media] rtl28xxu: fix buffer overflow when probing Rafael Micro r820t tuner

As suggested by Antti, this patch replaces:
https://patchwork.kernel.org/patch/2649861/
The buffer overflow is fixed by reading only the r820t ID register.

Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c