Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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 326f6a5c

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a4292d7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {