From: Frank Mori Hess Date: Mon, 21 Nov 2005 00:24:33 +0000 (+0000) Subject: Patch from anders.blomdell@control.lth.se (Anders Blomdell): X-Git-Tag: r0_7_71~123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3a3ce2b45cff90df76f22b8fdf48c8fb1da4bd2;p=comedi.git Patch from anders.blomdell@control.lth.se (Anders Blomdell): make poll point to the right subfield --- diff --git a/comedi/drivers/serial2002.c b/comedi/drivers/serial2002.c index 4a2469bc..c03a3545 100644 --- a/comedi/drivers/serial2002.c +++ b/comedi/drivers/serial2002.c @@ -159,7 +159,7 @@ static int tty_read(struct file *f, int timeout) long elapsed; int mask; - mask = f->f_op->poll(f, &table); + mask = f->f_op->poll(f, &table.pt); if (mask & (POLLRDNORM|POLLRDBAND|POLLIN|POLLHUP|POLLERR)) { break; } do_gettimeofday(&now); elapsed = (1000000 * (now.tv_sec - start.tv_sec) +