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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Oct  4 11:20:50 2014 +0200

cobalt/rtdm: fix nasty, unreported use of uninit variable

This bug may cause applications to receive random addresses out of UMM
mapping operations.

---

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

diff --git a/kernel/cobalt/rtdm/drvlib.c b/kernel/cobalt/rtdm/drvlib.c
index cfc6733..e9ef6ce 100644
--- a/kernel/cobalt/rtdm/drvlib.c
+++ b/kernel/cobalt/rtdm/drvlib.c
@@ -1493,7 +1493,7 @@ struct mmap_helper_data {
 static int mmap_kmem_helper(struct vm_area_struct *vma, void *va)
 {
        unsigned long addr, len, pfn, to;
-       int ret;
+       int ret = 0;
        
        to = (unsigned long)va;
        addr = vma->vm_start;


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

Reply via email to