Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnd Bergmann and committed by
David S. Miller
0a5f1d47 3a43be3c

+2 -1
+2 -1
net/irda/irnet/irnet_ppp.h
··· 103 103 .poll = dev_irnet_poll, 104 104 .unlocked_ioctl = dev_irnet_ioctl, 105 105 .open = dev_irnet_open, 106 - .release = dev_irnet_close 106 + .release = dev_irnet_close, 107 + .llseek = noop_llseek, 107 108 /* Also : llseek, readdir, mmap, flush, fsync, fasync, lock, readv, writev */ 108 109 }; 109 110