mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-20 04:23:55 -04:00
lirc: make chardev nonseekable
There does not seem to be a need for lirc to allow seeking on the file descriptor, so let's just disallow this before users start relying on it. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -1058,6 +1058,7 @@ static const struct file_operations lirc_fops = {
|
||||
.poll = lirc_dev_fop_poll,
|
||||
.open = lirc_dev_fop_open,
|
||||
.release = lirc_dev_fop_close,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static struct lirc_driver driver = {
|
||||
|
||||
@@ -459,6 +459,7 @@ static const struct file_operations lirc_fops = {
|
||||
.unlocked_ioctl = lirc_ioctl,
|
||||
.open = lirc_dev_fop_open,
|
||||
.release = lirc_dev_fop_close,
|
||||
.llseek = no_llseek,
|
||||
};
|
||||
|
||||
static int set_use_inc(void *data)
|
||||
|
||||
Reference in New Issue
Block a user