OSDN Git Service

[media] cx24120: do not allow an invalid delivery system types
authorColin Ian King <colin.king@canonical.com>
Sat, 3 Sep 2016 17:04:17 +0000 (14:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 19:00:42 +0000 (17:00 -0200)
commitc0b34ab141505087d7d66f447d77e6023f34501e
tree1adca98981a30cf9ba68b9b522cca16796b2d046
parent37e785682746b53017c7b6e533c3ac2c85bb4ac8
[media] cx24120: do not allow an invalid delivery system types

cx24120_set_frontend currently allows invalid delivery system types
other than SYS_DVBS2 and SYS_DVBS.  Fix this by returning -EINVAL
for invalid values.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jemma Denson <jdenson@gmail.com>
drivers/media/dvb-frontends/cx24120.c