From: Adrian Bunk <bunk@stusta.de>
To: linux-m68k@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan <adobriyan@mail.ru>
Subject: [2.6 patch] drivers/block/acsi_slm.c: size_t can't be < 0
Date: Sun, 26 Mar 2006 19:11:14 +0200 [thread overview]
Message-ID: <20060326171114.GP4053@stusta.de> (raw)
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 );
reply other threads:[~2006-03-26 17:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060326171114.GP4053@stusta.de \
--to=bunk@stusta.de \
--cc=adobriyan@mail.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox