[PATCH]: (resend) tivial mtdblock.c fix

Greg Ungerer (gerg@snapgear.com)
Wed, 28 Aug 2002 13:27:26 +1000


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

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