Skip to content

Commit

Permalink
arch/tile: mark "hardwall" device as non-seekable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Metcalf committed Nov 1, 2010
1 parent 2c7387e commit d02db4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/kernel/hardwall.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,13 @@ static int hardwall_release(struct inode *inode, struct file *file)
}

static const struct file_operations dev_hardwall_fops = {
.open = nonseekable_open,
.unlocked_ioctl = hardwall_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = hardwall_compat_ioctl,
#endif
.flush = hardwall_flush,
.release = hardwall_release,
.llseek = noop_llseek,
};

static struct cdev hardwall_dev;
Expand Down

0 comments on commit d02db4f

Please sign in to comment.