Commit 9e07d84a authored by Federico Vaga's avatar Federico Vaga

sw:drv: add WORN_ON for weird situation

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 54abb621
......@@ -1033,6 +1033,12 @@ irqreturn_t trtl_irq_handler_out(int irq_core_base, void *arg)
status >>= 1;
hmq = &trtl->cpu[i / TRTL_MAX_MQ_CHAN].hmq[i % TRTL_MAX_MQ_CHAN];
/*
* It should never happen that we get an interrupt and
* there are no free slots
*/
WARN_ON(trtl_hmq_free_slots(hmq, 1) == 0);
trtl_mesage_push_from_buf(hmq);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment