Skip to content

Commit

Permalink
Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partia…
Browse files Browse the repository at this point in the history
…l leading matches

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 28, 2008
1 parent 27228b2 commit 1f7d373
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f7d373

Please sign in to comment.