master/fsm_master.c
changeset 998 05a24788f3b2
parent 992 50a44cbd30af
child 1000 5746fdd1ca2e
--- a/master/fsm_master.c	Thu Jun 12 08:12:02 2008 +0000
+++ b/master/fsm_master.c	Thu Jun 12 08:31:06 2008 +0000
@@ -243,8 +243,8 @@
 
             // init slaves
             for (i = 0; i < master->slave_count; i++) {
-                if (!(slave = (ec_slave_t *) kmalloc(sizeof(ec_slave_t),
-                                GFP_ATOMIC))) {
+                if (!(slave = (ec_slave_t *)
+                            kmalloc(sizeof(ec_slave_t), GFP_KERNEL))) {
                     EC_ERR("Failed to allocate slave %u!\n", i);
                     ec_master_clear_slaves(master);
                     master->scan_busy = 0;