diff options
author | Dinghao Liu <[email protected]> | 2020-08-24 11:12:30 +0800 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2020-10-14 15:02:24 +0200 |
commit | 937425d4cd3ae4e2882b41e332bbbab616bcf0ad (patch) | |
tree | 8f04bc22716d3f6fd0bfae157a96fe5be869b005 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5afb6d203d0293512aa2c6ae098274a2a4f6ed02 (diff) |
watchdog: Use put_device on error
We should use put_device() instead of freeing device
directly after device_initialize().
Fixes: cb36e29bb0e4b ("watchdog: initialize device before misc_register")
Signed-off-by: Dinghao Liu <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions