aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2015-07-30 11:32:23 +0200
committerWim Van Sebroeck <[email protected]>2015-09-09 21:35:14 +0200
commit0a0a542f6bbb2ebe956f0117c842302442ef52da (patch)
treefcce706c2c692ae597097ea3d56cf13c6a48122c /net/lapb/lapb_subr.c
parentab54d7f017772e89964d4040937a83cd4468562a (diff)
watchdog: gpio-wdt: be more strict about hw_algo matching
strncmp(algo, "toggle", 6) doesn't compare the trailing '\0' byte, so using hw_algo = "toggleboggle" is recognized the same way as hw_algo = "toggle" . While this doesn't introduce any problems for a device tree that sticks to the documented settings it's still ugly. Fix this by using strcmp to only match on "toggle" and "level". Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions