: (resend) tivial mtdblock.c fix
PATCH 1/1 : (resend) tivial mtdblock.c fix
Hi All,
Trivial fixup to mtdblock.c. The logical sense of the command check is wrong. Against 2.5.32.
Regards
Greg
------------------------------------------------------------------------
mtd/mtdblock.c renamed from mtd/mtdblock.c.org +1 -1
@@ -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: [email protected]
SnapGear Pty Ltd PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: www.SnapGear.com