git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
drivers
/
isdn
/
hardware
/
eicon
/
divasproc.c
diff --git
a/drivers/isdn/hardware/eicon/divasproc.c
b/drivers/isdn/hardware/eicon/divasproc.c
index
55e83d1
..
192fae4
100644
(file)
--- a/
drivers/isdn/hardware/eicon/divasproc.c
+++ b/
drivers/isdn/hardware/eicon/divasproc.c
@@
-63,6
+63,8
@@
divas_read(struct file *file, char __user *buf, size_t count, loff_t * off)
if (*off)
return 0;
if (*off)
return 0;
+ if (off != &file->f_pos)
+ return -ESPIPE;
divas_get_version(tmpbuf);
if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf)))
divas_get_version(tmpbuf);
if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf)))
@@
-105,7
+107,7
@@
static unsigned int divas_poll(struct file *file, poll_table * wait)
static int divas_open(struct inode *inode, struct file *file)
{
static int divas_open(struct inode *inode, struct file *file)
{
- return
nonseekable_open(inode, file
);
+ return
(0
);
}
static int divas_close(struct inode *inode, struct file *file)
}
static int divas_close(struct inode *inode, struct file *file)