[PATCH 5/5] flash_{lock, unlock}: fix off-by-one error for "entire device" length

Artem Bityutskiy dedekind1 at gmail.com
Mon Jun 6 08:28:26 EDT 2011


On Mon, 2011-06-06 at 00:09 -0400, Mike Frysinger wrote:
> From: Steven Miao <realmz6 at gmail.com>
> 
> This basically reverts commit 43feb39f35a9ee0ed3 which changed the full
> length calculation to be one less than one sector.  I don't understand
> the logic in the commit message where it states that the length should
> be one sector smaller as this results in misbehavior at runtime.

Pushed as well, thanks!

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




More information about the linux-mtd mailing list