i2c: sun6-p2wi: fix call to snprintf
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Fri, 13 Jun 2014 10:23:48 +0000 (12:23 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 17 Jun 2014 12:28:04 +0000 (14:28 +0200)
commit4632a93f015caf6d7db4352f37aab74a39e60d7a
treec044c403acffac9b0cf4f1490ca2a2d819a8e490
parentc51bd6acf59f24f2ec4334689329f1741f071621
i2c: sun6-p2wi: fix call to snprintf

Fixes possible issue in case pdev name contains formatting characters.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Reported-by: Kees Cook <keescook@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sun6i-p2wi.c