Commit ecb3db90 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] i2c: fix oops on startup of it87 driver.

parent c3efc929
......@@ -585,6 +585,8 @@ int it87_detect(struct i2c_adapter *adapter, int address, int kind)
err = -ENOMEM;
goto ERROR1;
}
memset(new_client, 0x00, sizeof(struct i2c_client) +
sizeof(struct it87_data));
data = (struct it87_data *) (new_client + 1);
if (is_isa)
......
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