UBI: fix buffer padding
authorKyungmin Park <kmpark@infradead.org>
Wed, 21 May 2008 11:34:56 +0000 (14:34 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jul 2008 10:32:54 +0000 (13:32 +0300)
commita0fd1efd488092951f310fdb777b8a540cf84dcb
treed085115d57460e5ac29cdb61bf78fab9c1d3628d
parentbeeea636030622f6de67d15c61f5b311a03d188c
UBI: fix buffer padding

Instead of correctly pad the buffer wich we are writing to the
eraseblock during update, we used weird construct:

memset(buf + len, 0xFF, len - len);

Fix this.

Signed-off-by: Kyungmin Park <kmpark@infradead.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/upd.c