提交 6bff338b 编写于 作者: A Andrew Morton 提交者: David S. Miller

misdn: use nonseekable_open()

The driver just sets ->llseek to NULL.  It should also clear FMODE_LSEEK to
tell the VFS that seeks are not supported.

Pointed out by Christoph Hellwig.
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b7c6bfb7
...@@ -61,7 +61,7 @@ mISDN_open(struct inode *ino, struct file *filep) ...@@ -61,7 +61,7 @@ mISDN_open(struct inode *ino, struct file *filep)
init_waitqueue_head(&dev->wait); init_waitqueue_head(&dev->wait);
filep->private_data = dev; filep->private_data = dev;
__module_get(THIS_MODULE); __module_get(THIS_MODULE);
return 0; return nonseekable_open(ino, filep);
} }
static int static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册