Commit c0b34ab1 authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab

[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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarJemma Denson <jdenson@gmail.com>
parent 37e78568
...@@ -1154,8 +1154,7 @@ static int cx24120_set_frontend(struct dvb_frontend *fe) ...@@ -1154,8 +1154,7 @@ static int cx24120_set_frontend(struct dvb_frontend *fe)
dev_dbg(&state->i2c->dev, dev_dbg(&state->i2c->dev,
"delivery system(%d) not supported\n", "delivery system(%d) not supported\n",
c->delivery_system); c->delivery_system);
ret = -EINVAL; return -EINVAL;
break;
} }
state->dnxt.delsys = c->delivery_system; state->dnxt.delsys = c->delivery_system;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment