diff options
author | George G. Davis <george_davis@mentor.com> | 2019-09-17 20:40:22 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-10-02 13:44:04 -0600 |
commit | 8f9577eda5b74de4bd8b186c67f20736bdea6e07 (patch) | |
tree | df13c48fa289201ac285fcec3ec8b7321f154c2e /tools/testing/selftests/cpufreq/Makefile | |
parent | selftests/kselftest/runner.sh: Add 45 second timeout per test (diff) | |
download | linux-dev-8f9577eda5b74de4bd8b186c67f20736bdea6e07.tar.xz linux-dev-8f9577eda5b74de4bd8b186c67f20736bdea6e07.zip |
selftests: watchdog: Validate optional file argument
The newly added optional file argument does not validate if the
file is indeed a watchdog, e.g.:
./watchdog-test -f /dev/zero
Watchdog Ticking Away!
Fix it by confirming that the WDIOC_GETSUPPORT ioctl succeeds.
Fixes: a4864a33f56caa ("selftests: watchdog: Add optional file argument")
Reported-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: George G. Davis <george_davis@mentor.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/cpufreq/Makefile')
0 files changed, 0 insertions, 0 deletions