Skip to content

Commit

Permalink
of: Format string bug in drivers/of/of_i2c.c
Browse files Browse the repository at this point in the history
Format string bug.  Not exploitable, as this is only writable by root,
but worth fixing all the same.

See 326f6a5

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
jonsmirl authored and ozbenh committed Oct 21, 2008
1 parent a4292d7 commit 0721357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/of_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0721357

Please sign in to comment.