]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/open_rtl.c
Structured comments updated.
[lincan.git] / lincan / src / open_rtl.c
index 230e3eb1fe46dc40356ceef96d468ee769c3eebd..2730ee3a45471238671db3e982d331d2141686f8 100644 (file)
@@ -52,6 +52,8 @@ int can_open_rtl_common(struct canuser_t *canuser, int open_flags)
        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);