X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fubifs%2Ftnc_misc.c;h=b48db999903e6d34b40c5066a9f30844723b70f8;hb=ce7db282a3830f57f5b05ec48288c23a5c4d66d5;hp=a25c1cc1f8d9df4e11fcaf6af3362f1606c9b259;hpb=aef8755711a28bb0ecde7780ae6613fcb62cf6f7;p=mv-sheeva.git diff --git a/fs/ubifs/tnc_misc.c b/fs/ubifs/tnc_misc.c index a25c1cc1f8d..b48db999903 100644 --- a/fs/ubifs/tnc_misc.c +++ b/fs/ubifs/tnc_misc.c @@ -480,8 +480,8 @@ int ubifs_tnc_read_node(struct ubifs_info *c, struct ubifs_zbranch *zbr, } /* Make sure the key of the read node is correct */ - key_read(c, key, &key1); - if (memcmp(node + UBIFS_KEY_OFFSET, &key1, c->key_len)) { + key_read(c, node + UBIFS_KEY_OFFSET, &key1); + if (!keys_eq(c, key, &key1)) { ubifs_err("bad key in node at LEB %d:%d", zbr->lnum, zbr->offs); dbg_tnc("looked for key %s found node's key %s",