From a3a3ce2b45cff90df76f22b8fdf48c8fb1da4bd2 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 21 Nov 2005 00:24:33 +0000 Subject: [PATCH] Patch from anders.blomdell@control.lth.se (Anders Blomdell): make poll point to the right subfield --- comedi/drivers/serial2002.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + -- 2.26.2