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 diff -u -r1.16 writing-clients --- writing-clients 2001/11/11 23:03:40 1.16 +++ writing-clients 2002/09/13 14:23:51 @@ -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 h-iwamoto at kit.hi-ho.ne.jp