Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-25 23:41:14 -0300
committerWilly Tarreau <w@1wt.eu>2016-08-27 11:40:41 +0200
commit78308a4a651d1b6c4851f84d09ba0edb9803df97 (patch)
tree3299525049d48062f8e561b26e5eeb894b631f0d
parentd55534bf7e5796555a9359fd82872a07ba4ac87c (diff)
stb6100: fix buffer length check in stb6100_write_reg_range()
commit 7e6bd12fb77b0067df13fb3ba3fadbdff2945396 upstream. 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> Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r--drivers/media/dvb-frontends/stb6100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stb6100.c b/drivers/media/dvb-frontends/stb6100.c
index cea175d19890..4ef8a5c7003e 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);