lkml.org 
[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH]: (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


------------------------------------------------------------------------
--- 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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.031 / U:2.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site