master/master.c
changeset 203 c1f305e339c6
parent 199 04ecf40fc2e9
child 204 5ab50514d9b2
--- a/master/master.c	Tue Apr 25 11:37:05 2006 +0000
+++ b/master/master.c	Tue Apr 25 11:39:33 2006 +0000
@@ -574,7 +574,10 @@
                 goto out_free;
             }
 
-            ec_eoe_init(eoe, slave);
+            if (ec_eoe_init(eoe, slave)) {
+                kfree(eoe);
+                goto out_free;
+            }
             list_add_tail(&eoe->list, &master->eoe_slaves);
         }
     }