]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[JFFS2] Check for all-zero node headers
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 9 Mar 2007 11:44:00 +0000 (11:44 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 9 Mar 2007 11:44:00 +0000 (11:44 +0000)
commitc7258a4477b5ed0243c28ec107b98bb946757448
treec1b3bce6ea3567ac7e23241ec13a2c4a40972b0f
parent470bc844361b238bcbe6a07ba47d51fca25f2742
[JFFS2] Check for all-zero node headers

Due to a poor choice of CRC32 seed, a node header which is all zeroes
would pass the CRC32 check. Explicitly check for this case, and treat it
as we do a CRC failure.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/readinode.c
fs/jffs2/scan.c