qends = (struct canque_ends_t *)rt_malloc(sizeof(struct canque_ends_t));
if(qends == NULL) goto no_qends;
canqueue_ends_init_rtl(qends);
+ /* mark memory as allocated from RTL memory pool */
+ qends->ends_flags|=CAN_ENDSF_MEM_RTL;
canuser->qends = qends;
can_spin_lock_irqsave(&canuser_manipulation_lock, iflags);