diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-07-06 23:08:51 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-09-11 20:59:38 +0200 |
commit | e4dddc9191297738355a675c40fc6a7109762bdd (patch) | |
tree | bb65e83f9cc26bf0bf645bcf61765e14f09d097a /net/irda | |
parent | 6107fcb4b75850ed449545705dde386aea44f6a6 (diff) |
irda/irnet: use noop_llseek
There may be applications trying to seek
on the irnet character device, so we should
use noop_llseek to avoid returning an error
when the default llseek changes to no_llseek.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: netdev@vger.kernel.org
Diffstat (limited to 'net/irda')
-rw-r--r-- | net/irda/irnet/irnet_ppp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/irda/irnet/irnet_ppp.h b/net/irda/irnet/irnet_ppp.h index b5df2418f90c..940225866da0 100644 --- a/net/irda/irnet/irnet_ppp.h +++ b/net/irda/irnet/irnet_ppp.h @@ -103,7 +103,8 @@ static const struct file_operations irnet_device_fops = .poll = dev_irnet_poll, .unlocked_ioctl = dev_irnet_ioctl, .open = dev_irnet_open, - .release = dev_irnet_close + .release = dev_irnet_close, + .llseek = noop_llseek, /* Also : llseek, readdir, mmap, flush, fsync, fasync, lock, readv, writev */ }; |