only allow values between 0-3

This commit is contained in:
rjkm 2024-09-19 10:52:37 +02:00
parent 1022b26d7f
commit 8e4379ef3e

View File

@ -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)
{
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);