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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed May 28 17:06:14 2014 +0200

cobalt/sched: fix error path in xnsched_quota_find_group()

---

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

diff --git a/kernel/cobalt/sched-quota.c b/kernel/cobalt/sched-quota.c
index 5dd9db8..a932ac4 100644
--- a/kernel/cobalt/sched-quota.c
+++ b/kernel/cobalt/sched-quota.c
@@ -596,7 +596,7 @@ xnsched_quota_find_group(struct xnsched *sched, int tgid)
                        return tg;
        }
 
-       return tg;
+       return NULL;
 }
 EXPORT_SYMBOL_GPL(xnsched_quota_find_group);
 


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

Reply via email to