From: Alexey Dobriyan Date: Tue, 28 Mar 2006 09:56:28 +0000 (-0800) Subject: [PATCH] drivers/block/acsi_slm.c: size_t can't be < 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa8f399a2bc36c1329672400857757e0982babf3;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c index a5c1c8e871e..4cb9c133628 100644 --- 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 );