mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e51236092d
commit
fa8f399a2b
1 changed files with 0 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue