Commit 4b58cfe0 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] : trivial mtdblock.c fix

The logical sense of the command check is wrong.
parent 2a92787a
...@@ -406,7 +406,7 @@ static void handle_mtdblock_request(void) ...@@ -406,7 +406,7 @@ static void handle_mtdblock_request(void)
if (minor(req->rq_dev) >= MAX_MTD_DEVICES) if (minor(req->rq_dev) >= MAX_MTD_DEVICES)
panic(__FUNCTION__": minor out of bound"); panic(__FUNCTION__": minor out of bound");
if (req->flags & REQ_CMD) if (! (req->flags & REQ_CMD))
goto end_req; goto end_req;
if ((req->sector + req->current_nr_sectors) > (mtdblk->mtd->size >> 9)) if ((req->sector + req->current_nr_sectors) > (mtdblk->mtd->size >> 9))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment