This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / isdn / capi / capi.c
index 3429d57..42d7c6b 100644 (file)
@@ -656,6 +656,9 @@ capi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
        struct sk_buff *skb;
        size_t copied;
 
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        if (!cdev->ap.applid)
                return -ENODEV;
 
@@ -696,6 +699,9 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos
        struct sk_buff *skb;
        u16 mlen;
 
+        if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        if (!cdev->ap.applid)
                return -ENODEV;
 
@@ -959,7 +965,7 @@ capi_open(struct inode *inode, struct file *file)
        if ((file->private_data = capidev_alloc()) == 0)
                return -ENOMEM;
 
-       return nonseekable_open(inode, file);
+       return 0;
 }
 
 static int