Message ID | 1465356616-21333-1-git-send-email-aospan@netup.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/dvb-frontends/ascot2e.c b/drivers/media/dvb-frontends/ascot2e.c index f770f6a..8cc8c45 100644 --- a/drivers/media/dvb-frontends/ascot2e.c +++ b/drivers/media/dvb-frontends/ascot2e.c @@ -132,7 +132,7 @@ static int ascot2e_write_regs(struct ascot2e_priv *priv, } }; - if (len + 1 >= sizeof(buf)) { + if (len + 1 > sizeof(buf)) { dev_warn(&priv->i2c->dev,"wr reg=%04x: len=%d is too big!\n", reg, len + 1); return -E2BIG;
can't tune to DVB-T because 10 bytes can't be written to tuner Signed-off-by: Abylay Ospan <aospan@netup.ru> --- drivers/media/dvb-frontends/ascot2e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)