mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
a4292d7ae6
commit
0721357d4d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user