charger-manager: Ensure event is not used as format string
authorKees Cook <keescook@chromium.org>
Thu, 6 Jun 2013 20:52:21 +0000 (13:52 -0700)
committerAnton Vorontsov <anton@enomsg.org>
Fri, 7 Jun 2013 00:37:28 +0000 (17:37 -0700)
commit3594f4c0d7bc51e3a7e6d73c44e368ae079e42f3
treec96313363b1a8fdc4bc235781f09c2f2fb2c63a7
parent4b43eb67ae246b9a846c46e5ff96ea0212ae7a51
charger-manager: Ensure event is not used as format string

The exposed interface for cm_notify_event() could result in the event msg
string being parsed as a format string. Make sure it is only used as a
literal string.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/charger-manager.c