Module: xenomai-gch
Branch: for-forge-fd-rework
Commit: 5d1c29b7eae5676dccf88f04ee000bfbc4734587
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=5d1c29b7eae5676dccf88f04ee000bfbc4734587

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon May 19 10:18:00 2014 +0200

rtdm: fix oops in /proc

---

 kernel/cobalt/rtdm/proc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/rtdm/proc.c b/kernel/cobalt/rtdm/proc.c
index d04c9c9..f2b9a93 100644
--- a/kernel/cobalt/rtdm/proc.c
+++ b/kernel/cobalt/rtdm/proc.c
@@ -195,7 +195,7 @@ static int openfd_show(struct xnvfile_regular_iterator *it, 
void *data)
        i = (int)it->pos - 1;
 
        fd = rtdm_fd_get(&__xnsys_global_ppd, i, RTDM_FD_MAGIC);
-       if (fd == NULL)
+       if (IS_ERR(fd))
                return VFILE_SEQ_SKIP;
 
        context = rtdm_fd_to_context(fd);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to