[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <87zl31b0zp.fsf@devron.myhome.or.jp>
Date: Tue, 23 Feb 2010 03:04:42 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: Greg Kroah-Hartman <gregkh@...e.de>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] staging/serial2002: Fix filp_open usage
Signed-off-by: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
---
drivers/staging/comedi/drivers/serial2002.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/staging/comedi/drivers/serial2002.c~serial2002-filp_open-fix drivers/staging/comedi/drivers/serial2002.c
--- linux-2.6/drivers/staging/comedi/drivers/serial2002.c~serial2002-filp_open-fix 2010-02-22 23:22:27.000000000 +0900
+++ linux-2.6-hirofumi/drivers/staging/comedi/drivers/serial2002.c 2010-02-22 23:22:27.000000000 +0900
@@ -397,7 +397,7 @@ static void serial_2002_open(struct come
char port[20];
sprintf(port, "/dev/ttyS%d", devpriv->port);
- devpriv->tty = filp_open(port, 0, O_RDWR);
+ devpriv->tty = filp_open(port, O_RDWR, 0);
if (IS_ERR(devpriv->tty)) {
printk("serial_2002: file open error = %ld\n",
PTR_ERR(devpriv->tty));
_
--
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists