From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Oxf4t-0001ld-Ag for linux-mtd@lists.infradead.org; Mon, 20 Sep 2010 12:02:35 +0000 Received: by fxm4 with SMTP id 4so777915fxm.36 for ; Mon, 20 Sep 2010 05:02:33 -0700 (PDT) Subject: Re: [PATCH 1/2] mtd: prepare partition add and del functions for ioctl requests From: Artem Bityutskiy To: Roman Tereshonkov In-Reply-To: <1284972658.2286.52.camel@localhost> References: <1284719502-24183-1-git-send-email-roman.tereshonkov@nokia.com> <1284719502-24183-2-git-send-email-roman.tereshonkov@nokia.com> <1284972658.2286.52.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Mon, 20 Sep 2010 15:00:42 +0300 Message-ID: <1284984042.5258.21.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 (Артём Битюцкий)