Commit 0721357d authored by Jon Smirl's avatar Jon Smirl Committed by Benjamin Herrenschmidt

of: Format string bug in drivers/of/of_i2c.c

Format string bug.  Not exploitable, as this is only writable by root,
but worth fixing all the same.

See 326f6a5cSigned-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a4292d7a
......@@ -41,7 +41,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap,
info.addr = *addr;
request_module(info.type);
request_module("%s", info.type);
result = i2c_new_device(adap, &info);
if (result == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment