Module: xenomai-forge
Branch: next
Commit: a4c49212c4eb5c63de2e293f8487245766d1ea6c
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=a4c49212c4eb5c63de2e293f8487245766d1ea6c

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

cobalt/rtdm: fix oops in reading /proc/rtdm/open_fildes

---

 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