mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b7c6bfb710
commit
6bff338bb6
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ mISDN_open(struct inode *ino, struct file *filep)
|
|||
init_waitqueue_head(&dev->wait);
|
||||
filep->private_data = dev;
|
||||
__module_get(THIS_MODULE);
|
||||
return 0;
|
||||
return nonseekable_open(ino, filep);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue