X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/4dc78b4651f006bf0404c8ec7db85651bcee7c2e..04ac67cc3cac14cd601daacd0592121ec0b84012:/lincan/src/close.c diff --git a/lincan/src/close.c b/lincan/src/close.c index a69247c..2e0090d 100644 --- a/lincan/src/close.c +++ b/lincan/src/close.c @@ -48,15 +48,15 @@ int can_close(struct inode *inode, struct file *file) struct canque_ends_t *qends; struct msgobj_t *obj; can_spin_irqflags_t iflags; - + if(!canuser || (canuser->magic != CAN_USER_MAGIC)){ CANMSG("can_close: bad canuser magic\n"); return -ENODEV; } - + obj = canuser->msgobj; qends = canuser->qends; - + #ifdef CAN_ENABLE_KERN_FASYNC can_fasync(-1, file, 0); @@ -76,7 +76,7 @@ int can_close(struct inode *inode, struct file *file) can_msgobj_clear_fl(obj,OPENED); }; can_spin_unlock_irqrestore(&canuser_manipulation_lock, iflags); - + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,50)) MOD_DEC_USE_COUNT; #endif