aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2017-09-25 09:17:01 -0700
committerWim Van Sebroeck <[email protected]>2017-12-17 11:01:47 +0100
commit4bcd615fad6adddc68b058d498b30a9e0e0db77a (patch)
tree2147795c91515080182841b24959a0416bcae594 /tools/perf/scripts/python/bin/stackcollapse-report
parentf3b5ad89de16f5d42e8ad36fbdf85f705c1ae051 (diff)
watchdog: Fix potential kref imbalance when opening watchdog
If a watchdog driver's open function sets WDOG_HW_RUNNING with the expectation that the watchdog can not be stopped, but then stops the watchdog anyway in its stop function, kref_get() wil not be called in watchdog_open(). If the watchdog then stops on close, WDOG_HW_RUNNING will be cleared and kref_put() will be called, causing a kref imbalance. As result the character device data structure will be released, which in turn will cause the system to crash on the next call to watchdog_open(). Fixes: ee142889e32f5 ("watchdog: Introduce WDOG_HW_RUNNING flag") Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions