Module: xenomai-head
Branch: master
Commit: e67b19e43367b69af37bd9588a5256f8a4a1c3f2
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=e67b19e43367b69af37bd9588a5256f8a4a1c3f2

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Sep 11 15:11:59 2009 +0200

native: check status of all bufd-driven copies

---

 ksrc/skins/native/buffer.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ksrc/skins/native/buffer.c b/ksrc/skins/native/buffer.c
index 880e810..abee77c 100644
--- a/ksrc/skins/native/buffer.c
+++ b/ksrc/skins/native/buffer.c
@@ -389,7 +389,9 @@ redo:
                         */
                        xnlock_put_irqrestore(&nklock, s);
 
-                       xnbufd_copy_to_kmem(bf->bufmem + wroff, bufd, n);
+                       ret = xnbufd_copy_to_kmem(bf->bufmem + wroff, bufd, n);
+                       if (ret < 0)
+                               return ret;
 
                        xnlock_get_irqsave(&nklock, s);
                        /*
@@ -545,7 +547,9 @@ redo:
 
                        xnlock_put_irqrestore(&nklock, s);
 
-                       xnbufd_copy_from_kmem(bufd, bf->bufmem + rdoff, n);
+                       ret = xnbufd_copy_from_kmem(bufd, bf->bufmem + rdoff, 
n);
+                       if (ret < 0)
+                               return ret;
 
                        xnlock_get_irqsave(&nklock, s);
                        /*


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to