From: Roel Kluin Date: Fri, 18 Sep 2009 19:51:50 +0000 (-0700) Subject: mtd: mtdpart: prevent a read from regions[-1] X-Git-Tag: v2.6.32-rc1~160^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a57ca0466af5da83e379d636b8c01fd53b41e2c6;p=pandora-kernel.git mtd: mtdpart: prevent a read from regions[-1] If the erase region was found in the first iteration we read from regions[-1] Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- Reading git-diff-tree failed