summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2013-09-30 13:22:20 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-02 06:48:14 -0300
commitf25bbaff71a779a7d347e0588e56d890a153af1b (patch)
tree662488837abb198e603512e9206786e160b68f81 /drivers/media/dvb-frontends
parent221ff3d0d59bcb20671e3e36b8417b52ca0de89f (diff)
downloadtalos-obmc-linux-f25bbaff71a779a7d347e0588e56d890a153af1b.tar.gz
talos-obmc-linux-f25bbaff71a779a7d347e0588e56d890a153af1b.zip
[media] dib9000: fix potential format string leak
Make sure that a format string cannot accidentally leak into the printk buffer. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/dib9000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/dib9000.c b/drivers/media/dvb-frontends/dib9000.c
index 6201c59a78dd..61b2cfe6789c 100644
--- a/drivers/media/dvb-frontends/dib9000.c
+++ b/drivers/media/dvb-frontends/dib9000.c
@@ -649,7 +649,7 @@ static int dib9000_risc_debug_buf(struct dib9000_state *state, u16 * data, u8 si
b[2 * (size - 2) - 1] = '\0'; /* Bullet proof the buffer */
if (*b == '~') {
b++;
- dprintk(b);
+ dprintk("%s", b);
} else
dprintk("RISC%d: %d.%04d %s", state->fe_id, ts / 10000, ts % 10000, *b ? b : "<emtpy>");
return 1;
OpenPOWER on IntegriCloud