* [2.6 patch] drivers/block/acsi_slm.c: size_t can't be < 0
@ 2006-03-26 17:11 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-03-26 17:11 UTC (permalink / raw)
To: linux-m68k; +Cc: linux-kernel, Alexey Dobriyan
From: Alexey Dobriyan <adobriyan@mail.ru>
A size_t can't be < 0.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- 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 );
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-26 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26 17:11 [2.6 patch] drivers/block/acsi_slm.c: size_t can't be < 0 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox