projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c197922
)
powerpc/cell: set no_llseek in spufs_cntl_fops
author
Geliang Tang
<geliangtang@gmail.com>
Sat, 6 May 2017 15:37:20 +0000
(23:37 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 4 Jul 2019 08:05:09 +0000
(18:05 +1000)
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>
arch/powerpc/platforms/cell/spufs/file.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/file.c
b/arch/powerpc/platforms/cell/spufs/file.c
index bfb9ca99ac0502a09aeb8013228b691d2e909c69..fd293e510621e7a9967174785c4eeb78b97d3cb5 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/file.c
+++ b/
arch/powerpc/platforms/cell/spufs/file.c
@@
-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,
};