diff options
author | Dan Carpenter <[email protected]> | 2015-04-21 16:46:28 +0300 |
---|---|---|
committer | Matt Fleming <[email protected]> | 2015-05-05 16:20:13 +0100 |
commit | d67e199611b986b345ea3087ee2e4a15da1c98b3 (patch) | |
tree | 8b405a9337c27c2ae7b64080a88806f88d8c7363 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 98b228f55014870092c15d7d168fecac69f2f12a (diff) |
efi: Fix error handling in add_sysfs_runtime_map_entry()
I spotted two (difficult to hit) bugs while reviewing this.
1) There is a double free bug because we unregister "map_kset" in
add_sysfs_runtime_map_entry() and also efi_runtime_map_init().
2) If we fail to allocate "entry" then we should return
ERR_PTR(-ENOMEM) instead of NULL.
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Guangyu Sun <[email protected]>
Cc: <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions