Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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 );