Commit fa8f399a authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] drivers/block/acsi_slm.c: size_t can't be < 0

A size_t can't be < 0.

(akpm: and rw_verify_area() already did that check)
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e5123609
...@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count, ...@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count,
int length; int length;
int end; int end;
if (count < 0)
return( -EINVAL );
if (!(page = __get_free_page( GFP_KERNEL ))) if (!(page = __get_free_page( GFP_KERNEL )))
return( -ENOMEM ); return( -ENOMEM );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment