Skip to content

Commit d02db4f

Browse files
arch/tile: mark "hardwall" device as non-seekable
Arnd's recent patch series tagged this device with noop_llseek, conservatively. In fact, it should be no_llseek, which we arrange for by opening the device with nonseekable_open(). Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
1 parent 2c7387e commit d02db4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/tile/kernel/hardwall.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,13 @@ static int hardwall_release(struct inode *inode, struct file *file)
768768
}
769769

770770
static const struct file_operations dev_hardwall_fops = {
771+
.open = nonseekable_open,
771772
.unlocked_ioctl = hardwall_ioctl,
772773
#ifdef CONFIG_COMPAT
773774
.compat_ioctl = hardwall_compat_ioctl,
774775
#endif
775776
.flush = hardwall_flush,
776777
.release = hardwall_release,
777-
.llseek = noop_llseek,
778778
};
779779

780780
static struct cdev hardwall_dev;

0 commit comments

Comments
 (0)