diff options
| author | Dmitry Torokhov <[email protected]> | 2015-07-20 16:02:49 -0700 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2015-09-05 13:19:07 +0200 |
| commit | 6706664d92ea841913d5fcfd06c290fbe6d33bd2 (patch) | |
| tree | 45a19f8e664116a18607dc69b0c48ba691ba6060 /tools/perf/scripts/python/netdev-times.py | |
| parent | dfe6c04aa289de06df95d888719af63d1d4c982d (diff) | |
rtc: class: fix double free in rtc_register_device() error path
Commit 59cca865f21e ("drivers/rtc/class.c: fix device_register() error
handling") correctly noted that naked kfree() should not be used after
failed device_register() call, however, while it added the needed
put_device() it forgot to remove the original kfree() causing double-free.
Cc: Vasiliy Kulikov <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions