From: Jemma Denson Date: Fri, 1 May 2015 19:20:16 +0000 (-0300) Subject: [media] cx24120: Fix hexdump length in writeregs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ce412292a2ae15eea55c70f43449a9857404c00;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] cx24120: Fix hexdump length in writeregs msg.len has been ++'d so msg.len is one too many. Signed-off-by: Jemma Denson Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/cx24120.c b/drivers/media/dvb-frontends/cx24120.c index 095af2e6f59f..74ce7a75a961 100644 --- a/drivers/media/dvb-frontends/cx24120.c +++ b/drivers/media/dvb-frontends/cx24120.c @@ -245,7 +245,7 @@ static int cx24120_writeregs(struct cx24120_state *state, dev_dbg(&state->i2c->dev, "%s: reg=0x%02x; data=%*ph\n", - __func__, reg, msg.len, msg.buf + 1); + __func__, reg, msg.len - 1, msg.buf + 1); } ret = 0;