i2c/doc/writing-clients
PATCH 1/1 i2c/doc/writing-clients
attached patch fix bug in i2c/doc/writing-clients
Index: writing-clients
=================================RCS file: /home/cvs/i2c/doc/writing-clients,v retrieving revision 1.16
writing-clients +2 -2
@@ -448,9 +448,9 @@ /* Note that we reserve some space for foo_data too. If you don't need it, remove it. We do it here to help to lessen memory fragmentation. */ - if (! (new_client = kmalloc(sizeof(struct i2c_client)) + + if (! (new_client = kmalloc(sizeof(struct i2c_client) + sizeof(struct foo_data), - GFP_KERNEL)) { + GFP_KERNEL))) { err = -ENOMEM; goto ERROR0; }
----
Hideki IWAMOTO [email protected]