mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-03-01 10:35:23 +00:00
only allow values between 0-3
This commit is contained in:
parent
1022b26d7f
commit
8e4379ef3e
@ -659,7 +659,7 @@ static struct mci_cfg *ddb_max_cfgs [] = {
|
|||||||
|
|
||||||
struct dvb_frontend *ddb_mx_attach(struct ddb_input *input, int nr, int tuner, int type)
|
struct dvb_frontend *ddb_mx_attach(struct ddb_input *input, int nr, int tuner, int type)
|
||||||
{
|
{
|
||||||
return ddb_mci_attach(input, ddb_max_cfgs[type], nr, tuner);
|
return ddb_mci_attach(input, ddb_max_cfgs[type & 3], nr, tuner);
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_SYMBOL(ddb_mx_attach);
|
EXPORT_SYMBOL(ddb_mx_attach);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user