Module: xenomai-abe Branch: analogy Commit: 2d7f53d55e1278b490fb43d2cfc3dfd1cc8bf0dd URL: http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=2d7f53d55e1278b490fb43d2cfc3dfd1cc8bf0dd
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