if ( *journal_table != 0xffffffff )
{
/* Search for the blockNr in cached journal */
- j_len = le32_to_cpu(*journal_table++);
+ j_len = le32_to_cpu((*journal_table)++);
while ( i++ < j_len )
{
if ( le32_to_cpu(*journal_table++) == blockNr )
cache = CACHE( depth );
else
{
- cache = read_tree_node( INFO->blocks[depth], --depth );
+ /* Save depth as using it twice as args to read_tree_node()
+ * has undefined behaviour */
+ __u16 d = depth;
+ cache = read_tree_node( INFO->blocks[d], --depth );
if ( !cache )
return 0;
}