diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-04-21 15:46:28 +0200 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2015-05-05 17:20:13 +0200 |
commit | d67e199611b986b345ea3087ee2e4a15da1c98b3 (patch) | |
tree | 8b405a9337c27c2ae7b64080a88806f88d8c7363 /arch/x86/kernel/process_32.c | |
parent | x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr (diff) | |
download | linux-d67e199611b986b345ea3087ee2e4a15da1c98b3.tar.xz linux-d67e199611b986b345ea3087ee2e4a15da1c98b3.zip |
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 <dan.carpenter@oracle.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Guangyu Sun <guangyu.sun@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/kernel/process_32.c')
0 files changed, 0 insertions, 0 deletions