projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e512360
)
[PATCH] drivers/block/acsi_slm.c: size_t can't be < 0
author
Alexey Dobriyan
<adobriyan@mail.ru>
Tue, 28 Mar 2006 09:56:28 +0000
(
01:56
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:03 +0000
(09:16 -0800)
A size_t can't be < 0.
(akpm: and rw_verify_area() already did that check)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/acsi_slm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/acsi_slm.c
b/drivers/block/acsi_slm.c
index a5c1c8e871ec38aacc9abcbbe15a211ab3269b85..4cb9c13362874cedbed44c24a2982046d1e74e4c 100644
(file)
--- a/
drivers/block/acsi_slm.c
+++ b/
drivers/block/acsi_slm.c
@@
-369,8
+369,6
@@
static ssize_t slm_read( struct file *file, char *buf, size_t count,
int length;
int end;
- if (count < 0)
- return( -EINVAL );
if (!(page = __get_free_page( GFP_KERNEL )))
return( -ENOMEM );