]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: fix backward compatibility
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 30 Sep 2009 07:01:28 +0000 (10:01 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 20 Oct 2009 07:13:04 +0000 (10:13 +0300)
commita7412bdf7ea6577fc09c928b4a116437db620f0e
tree31ca1bf2d0b2500a0600deecb81cd5af5230d0f6
parent9cf8c5884b1356c88794c8a5f829591840441331
UBI: fix backward compatibility

Commit 5443d1ce0cf6cd54e6f215c1c6d0c385aeee755c did not fully fix
the backward compatibility issues. We still fail to properly handle
situations when the first PEB contains non-zero image sequence
number, but one of the following PEBs contains zero image sequence
number. For example, this may happen if we mount a new image with
an old kernel, and then try to mount it in the new kernel.

This patch should fix the issue.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/scan.h