From: Artem Bityutskiy Date: Sun, 8 Aug 2010 09:32:00 +0000 (+0300) Subject: UBIFS: do not write rubbish into truncation scanning node X-Git-Tag: v2.6.37-rc1~170^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b7a3a2e1b0cbc7d5410a8da60dac266a3e19268;p=pandora-kernel.git 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 --- Reading git-diff-tree failed