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