mirror of https://gitee.com/openkylin/linux.git
powerpc/cell: set no_llseek in spufs_cntl_fops
In spufs_cntl_fops, since we use nonseekable_open() to open, we should use no_llseek() to seek, not generic_file_llseek(). Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
c197922f0a
commit
658829dfe7
|
@ -459,7 +459,7 @@ static const struct file_operations spufs_cntl_fops = {
|
|||
.release = spufs_cntl_release,
|
||||
.read = simple_attr_read,
|
||||
.write = simple_attr_write,
|
||||
.llseek = generic_file_llseek,
|
||||
.llseek = no_llseek,
|
||||
.mmap = spufs_cntl_mmap,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue