staging: dgap: fix overflows and format strings
authorKees Cook <keescook@chromium.org>
Wed, 11 Sep 2013 04:40:43 +0000 (21:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 14:39:27 +0000 (07:39 -0700)
commit1ea12fef83c3269eb7ba04f1d20db00c581515b2
tree31a5bc93de8c3a49442fa5db0652e6af7c2e54fc
parente72b9da08319f6f4f86b0c93499cd522062c5e7b
staging: dgap: fix overflows and format strings

The boot message buffer could potentially overflow the stack and the
heap. Additionally make sure format strings could not leak into printk()
calls.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap_driver.c