diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-25 23:41:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-02-28 15:20:33 -0300 |
commit | 7e6bd12fb77b0067df13fb3ba3fadbdff2945396 (patch) | |
tree | 14828e1ff4fbdcf79d147d7dc62cc742b8574ff8 | |
parent | c6aa852ae0c265da2f7dd84f5d864d55415e37c9 (diff) | |
download | op-kernel-dev-7e6bd12fb77b0067df13fb3ba3fadbdff2945396.zip op-kernel-dev-7e6bd12fb77b0067df13fb3ba3fadbdff2945396.tar.gz |
[media] stb6100: fix buffer length check in stb6100_write_reg_range()
We are checking sizeof() the wrong variable!
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/dvb-frontends/stb6100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stb6100.c b/drivers/media/dvb-frontends/stb6100.c index cea175d..4ef8a5c 100644 --- a/drivers/media/dvb-frontends/stb6100.c +++ b/drivers/media/dvb-frontends/stb6100.c @@ -193,7 +193,7 @@ static int stb6100_write_reg_range(struct stb6100_state *state, u8 buf[], int st .len = len + 1 }; - if (1 + len > sizeof(buf)) { + if (1 + len > sizeof(cmdbuf)) { printk(KERN_WARNING "%s: i2c wr: len=%d is too big!\n", KBUILD_MODNAME, len); |