master/fsm_slave_scan.c
changeset 1609 94010c6d8198
parent 1581 e51cf2af3ff9
child 1775 576c400d74d5
equal deleted inserted replaced
1608:004a8b91e927 1609:94010c6d8198
   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;