Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 27228b2e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}