From: Greg Ungerer <gerg@snapgear.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH]: (resend) tivial mtdblock.c fix
Date: Wed, 28 Aug 2002 13:27:26 +1000 [thread overview]
Message-ID: <3D6C431E.4090709@snapgear.com> (raw)
Hi All,
Trivial fixup to mtdblock.c. The logical sense of the command check
is wrong. Against 2.5.32.
Regards
Greg
------------------------------------------------------------------------
--- drivers/mtd/mtdblock.c.org Wed Aug 28 13:09:33 2002
+++ drivers/mtd/mtdblock.c Wed Aug 28 13:10:40 2002
@@ -406,7 +406,7 @@
if (minor(req->rq_dev) >= MAX_MTD_DEVICES)
panic(__FUNCTION__": minor out of bound");
- if (req->flags & REQ_CMD)
+ if (! (req->flags & REQ_CMD))
goto end_req;
if ((req->sector + req->current_nr_sectors) > (mtdblk->mtd->size >> 9))
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Wizard EMAIL: gerg@snapgear.com
SnapGear Pty Ltd PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: www.SnapGear.com
reply other threads:[~2002-08-28 3:21 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=3D6C431E.4090709@snapgear.com \
--to=gerg@snapgear.com \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.