Commit 1f7d373f authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 27228b2e
......@@ -256,8 +256,7 @@ static int cmp_label(unsigned short ident, const char *label)
}
if (label)
return strncmp(str_ident[ident].name,
label, strlen(label));
return strcmp(str_ident[ident].name, label);
else
return -EINVAL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment