[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080923043005.358e19e7.akpm@linux-foundation.org>
Date: Tue, 23 Sep 2008 04:30:05 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: kkeil@...e.de, netdev@...r.kernel.org, andi@...stfloor.org,
ak@...ux.intel.com
Subject: Re: [patch 4/4] mISDN: misc timerdev fixes
On Tue, 23 Sep 2008 06:40:26 -0400 Christoph Hellwig <hch@...radead.org> wrote:
> On Mon, Sep 22, 2008 at 02:51:03PM -0700, akpm@...ux-foundation.org wrote:
> > From: Andi Kleen <andi@...stfloor.org>
> >
> > - Remove noop VFS stubs. The VFS does that on a NULL pointer anyways.
>
> > -static loff_t
> > -mISDN_llseek(struct file *filep, loff_t offset, int orig)
> > -{
> > - return -ESPIPE;
> > -}
>
> > static struct file_operations mISDN_fops = {
> > - .llseek = mISDN_llseek,
>
> This is wrong. no llseek means we use default_llseek, which is
> different from returning -ESPIPE.
so.. this?
--- a/drivers/isdn/mISDN/timerdev.c~misdn-misc-timerdev-fixes-fix
+++ a/drivers/isdn/mISDN/timerdev.c
@@ -61,7 +61,7 @@ mISDN_open(struct inode *ino, struct fil
init_waitqueue_head(&dev->wait);
filep->private_data = dev;
__module_get(THIS_MODULE);
- return 0;
+ return nonseekable_open(ino, filep);
}
static int
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists