projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d67ebe7
)
powerpc/spufs: Fix test in spufs_switch_log_read()
author
roel kluin
<
[email protected]
>
Wed, 14 Oct 2009 05:32:28 +0000
(
05:32
+0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Tue, 24 Nov 2009 03:31:25 +0000
(14:31 +1100)
size_t len cannot be less than 0.
Signed-off-by: Roel Kluin <
[email protected]
>
Acked-by: Jeremy Kerr <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
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 884e8bcec499ff13718b7bb09f4148467cb6d22d..64a4c2d85f7cbd22671544a7ec3a65aac6fb37e9 100644
(file)
--- a/
arch/powerpc/platforms/cell/spufs/file.c
+++ b/
arch/powerpc/platforms/cell/spufs/file.c
@@
-2494,7
+2494,7
@@
static ssize_t spufs_switch_log_read(struct file *file, char __user *buf,
struct spu_context *ctx = SPUFS_I(inode)->i_ctx;
int error = 0, cnt = 0;
- if (!buf
|| len < 0
)
+ if (!buf)
return -EINVAL;
error = spu_acquire(ctx);