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

From: Adrian Bunk
Date: Sun Mar 26 2006 - 12:08:23 EST


From: Alexey Dobriyan <adobriyan@xxxxxxx>

A size_t can't be < 0.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.14-rc3-git3/drivers/block/acsi_slm.c 2005-10-04 19:24:01.000000000 +1000
+++ .6877.trivial/drivers/block/acsi_slm.c 2005-10-04 19:29:51.000000000 +1000
@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *fi
int length;
int end;

- if (count < 0)
- return( -EINVAL );
if (!(page = __get_free_page( GFP_KERNEL )))
return( -ENOMEM );


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/