Commit 6bff338b authored by Andrew Morton's avatar Andrew Morton Committed by 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment