master/fsm_slave_scan.c
changeset 998 05a24788f3b2
parent 986 a486591ba86b
child 1000 5746fdd1ca2e
equal deleted inserted replaced
997:652180478e95 998:05a24788f3b2
   402                 slave->ring_position);
   402                 slave->ring_position);
   403         kfree(slave->sii_words);
   403         kfree(slave->sii_words);
   404     }
   404     }
   405 
   405 
   406     if (!(slave->sii_words =
   406     if (!(slave->sii_words =
   407                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_ATOMIC))) {
   407                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_KERNEL))) {
   408         EC_ERR("Failed to allocate %u words of SII data for slave %u.\n",
   408         EC_ERR("Failed to allocate %u words of SII data for slave %u.\n",
   409                slave->sii_nwords, slave->ring_position);
   409                slave->sii_nwords, slave->ring_position);
   410         slave->sii_nwords = 0;
   410         slave->sii_nwords = 0;
   411         slave->error_flag = 1;
   411         slave->error_flag = 1;
   412         fsm->state = ec_fsm_slave_scan_state_error;
   412         fsm->state = ec_fsm_slave_scan_state_error;