equal
deleted
inserted
replaced
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; |