master/fsm_slave_scan.c
changeset 1606 6c5849669900
parent 1581 e51cf2af3ff9
child 1775 576c400d74d5
equal deleted inserted replaced
1605:1a588303083a 1606:6c5849669900
   544         kfree(slave->sii_words);
   544         kfree(slave->sii_words);
   545     }
   545     }
   546 
   546 
   547     if (!(slave->sii_words =
   547     if (!(slave->sii_words =
   548                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_KERNEL))) {
   548                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_KERNEL))) {
   549         EC_ERR("Failed to allocate %u words of SII data for slave %u.\n",
   549         EC_ERR("Failed to allocate %zu words of SII data for slave %u.\n",
   550                slave->sii_nwords, slave->ring_position);
   550                slave->sii_nwords, slave->ring_position);
   551         slave->sii_nwords = 0;
   551         slave->sii_nwords = 0;
   552         slave->error_flag = 1;
   552         slave->error_flag = 1;
   553         fsm->state = ec_fsm_slave_scan_state_error;
   553         fsm->state = ec_fsm_slave_scan_state_error;
   554         return;
   554         return;