diff options
author | Johan Hovold <[email protected]> | 2018-06-12 14:43:34 +0200 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2018-06-17 13:09:44 +0200 |
commit | 4708aa85d50cc6e962dfa8acf5ad4e0d290a21db (patch) | |
tree | fad36b23fc027cd1d0bb171025af0fdb4ad347cb /tools/perf/util/trace-event-scripting.c | |
parent | 9d72fe1ce81bc757ecb6d57b58e5fd95b9ad1b26 (diff) |
EDAC: Fix memleak in module init error path
Make sure to use put_device() to free the initialised struct device so
that resources managed by driver core also gets released in the event of
a registration failure.
Signed-off-by: Johan Hovold <[email protected]>
Cc: Denis Kirjanov <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: linux-edac <[email protected]>
Fixes: 2d56b109e3a5 ("EDAC: Handle error path in edac_mc_sysfs_init() properly")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions