--- linux-2.5.67/drivers/mtd/mtdblock.c.orig Wed Apr 9 14:00:10 2003 +++ linux-2.5.67/drivers/mtd/mtdblock.c Wed Apr 9 14:00:32 2003 @@ -388,7 +388,7 @@ struct mtdblk_dev *mtdblk; unsigned int res; - while ((req = elv_next_request(&mtd_queue) != NULL) { + while ((req = elv_next_request(&mtd_queue)) != NULL) { struct mtdblk_dev **p = req->rq_disk->private_data; spin_unlock_irq(mtd_queue.queue_lock); mtdblk = *p;