Skip to contentSkip to conversation

i2c/doc/writing-clients

PATCH New Hideki IWAMOTO 1 participant 1 message May 19, 2005

lore
Share & tools
lore
#0 lore raw

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
diff -u -r1.16 writing-clients
@@ -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]