scan.c & ACCURATE

David Woodhouse dwmw2 at infradead.org
Wed Feb 27 03:17:34 EST 2002


Joakim.Tjernlund at lumentis.se said:
> > You're trusting ri.totlen before verifying ri.node_crc. Naughty.
> Totlen has been checked by jffs2_scan_eraseblock() before calling
> jffs2_scan_inode_node(), but that is not obvious. Move it to after the
> CRC check if you like.

Sorry, was confusing node_crc with hdr_crc. You're absolutely right. What 
I've actually done is move the logic to jffs2_erase_eraseblock(), and made 
it trigger for all types of node.

--
dwmw2






More information about the linux-mtd mailing list