* [PATCH]: (resend) tivial mtdblock.c fix
@ 2002-08-28 3:27 Greg Ungerer
0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2002-08-28 3:27 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-28 3:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-28 3:27 [PATCH]: (resend) tivial mtdblock.c fix Greg Ungerer
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.