ChangeSet 1.1042.48.2, 2003/04/25 16:11:23-07:00, greg@kroah.com
[PATCH] i2c: fix oops on startup of it87 driver.
drivers/i2c/chips/it87.c | 2 ++
1 files changed, 2 insertions(+)
diff -Nru a/drivers/i2c/chips/it87.c b/drivers/i2c/chips/it87.c
--- a/drivers/i2c/chips/it87.c Tue May 6 17:25:00 2003
+++ b/drivers/i2c/chips/it87.c Tue May 6 17:25:00 2003
@@ -585,6 +585,8 @@
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:29 EST