Artem Bityutskiy 5b7a3a2e1b UBIFS: do not write rubbish into truncation scanning node
In the scanning code, in 'ubifs_add_snod()', we write rubbish into
'snod->key', because we assume that on-flash truncation nodes have a key, but
they do not. If the other parts of UBIFS then mistakenly try to look-up
the truncation node key (they should not do this, but may do because of a bug),
we can succeed and corrupt TNC. It looks like we did have such a situation in
'sort_nodes()' in gc.c.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2010-08-30 10:19:08 +03:00
..
2008-12-31 14:13:24 +02:00
2009-03-08 13:29:09 +02:00
2010-04-29 15:12:18 +03:00
2009-07-12 12:22:34 -07:00
2009-09-10 09:58:11 +03:00
2009-09-15 17:09:48 +03:00
2010-06-12 14:46:15 +03:00
2010-06-12 14:46:15 +03:00
2008-07-15 17:35:24 +03:00
2008-09-30 11:12:56 +03:00
2010-07-13 06:51:57 +03:00
2008-09-30 11:12:57 +03:00