[PATCH 1/2] mtd: prepare partition add and del functions for ioctl requests

Artem Bityutskiy dedekind1 at gmail.com
Mon Sep 20 08:00:42 EDT 2010


On Mon, 2010-09-20 at 11:50 +0300, Artem Bityutskiy wrote:
> On Fri, 2010-09-17 at 13:31 +0300, Roman Tereshonkov wrote:
> > +       list_for_each_entry(p, &mtd_partitions, list)
> > +               if (p->master == master) {
> > +                           (start < (p->offset + p->mtd.size)))
> > +                               goto err_inv; 
> 
> Pardon?

Sorry, it is some Evolution (e-mail client) bug. The code is different,
it displays it incorrectly. I do not really why. The code is actually
different:

+               if (p->master == master) {
+                       if ((start >= p->offset) &&
+                           (start < (p->offset + p->mtd.size)))
+                               goto err_inv;

I really do not know why Evolution decided to kill the "if" line...

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list