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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Jun 16 00:35:03 2010 +0200

analogy: fix test of subdevice status in a4l_write

---

 ksrc/drivers/analogy/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/buffer.c b/ksrc/drivers/analogy/buffer.c
index 04922be..12b8b9b 100644
--- a/ksrc/drivers/analogy/buffer.c
+++ b/ksrc/drivers/analogy/buffer.c
@@ -828,7 +828,7 @@ ssize_t a4l_write_buffer(a4l_cxt_t *cxt, const void 
*bufdata, size_t nbytes)
                return -EINVAL;
        }
 
-       if (!subd || !test_bit(A4L_SUBD_BUSY, &subd->status)) {
+       if (!subd || !a4l_subd_is_busy(subd)) {
                __a4l_err("a4l_write: idle subdevice on this context\n");
                return -ENOENT;
        }


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

Reply via email to