master/fsm_slave_scan.c
changeset 1543 373cd456dc26
parent 1470 cb424feef942
child 1581 e51cf2af3ff9
equal deleted inserted replaced
1528:dbc617badc33 1543:373cd456dc26
   542         kfree(slave->sii_words);
   542         kfree(slave->sii_words);
   543     }
   543     }
   544 
   544 
   545     if (!(slave->sii_words =
   545     if (!(slave->sii_words =
   546                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_KERNEL))) {
   546                 (uint16_t *) kmalloc(slave->sii_nwords * 2, GFP_KERNEL))) {
   547         EC_ERR("Failed to allocate %u words of SII data for slave %u.\n",
   547         EC_ERR("Failed to allocate %zu words of SII data for slave %u.\n",
   548                slave->sii_nwords, slave->ring_position);
   548                slave->sii_nwords, slave->ring_position);
   549         slave->sii_nwords = 0;
   549         slave->sii_nwords = 0;
   550         slave->error_flag = 1;
   550         slave->error_flag = 1;
   551         fsm->state = ec_fsm_slave_scan_state_error;
   551         fsm->state = ec_fsm_slave_scan_state_error;
   552         return;
   552         return;