Merge branch 'akpm' (incoming from Andrew)
Merge second patch-bomb from Andrew Morton: - various misc bits - the rest of MM - add generic fixmap.h, use it - backlight updates - dynamic_debug updates - printk() updates - checkpatch updates - binfmt_elf - ramfs - init/ - autofs4 - drivers/rtc - nilfs - hfsplus - Documentation/ - coredump - procfs - fork - exec - kexec - kdump - partitions - rapidio - rbtree - userns - memstick - w1 - decompressors * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (197 commits) lib/decompress_unlz4.c: always set an error return code on failures romfs: fix returm err while getting inode in fill_super drivers/w1/masters/w1-gpio.c: add strong pullup emulation drivers/memstick/host/rtsx_pci_ms.c: fix ms card data transfer bug userns: relax the posix_acl_valid() checks arch/sh/kernel/dwarf.c: use rbtree postorder iteration helper instead of solution using repeated rb_erase() fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix fs/ext3: use rbtree postorder iteration helper instead of opencoding fs/jffs2: use rbtree postorder iteration helper instead of opencoding fs/ext4: use rbtree postorder iteration helper instead of opencoding fs/ubifs: use rbtree postorder iteration helper instead of opencoding net/netfilter/ipset/ip_set_hash_netiface.c: use rbtree postorder iteration instead of opencoding rbtree/test: test rbtree_postorder_for_each_entry_safe() rbtree/test: move rb_node to the middle of the test struct rapidio: add modular rapidio core build into powerpc and mips branches partitions/efi: complete documentation of gpt kernel param purpose kdump: add /sys/kernel/vmcoreinfo ABI documentation kdump: fix exported size of vmcoreinfo note kexec: add sysctl to disable kexec_load fs/exec.c: call arch_pick_mmap_layout() only once ...
This commit is contained in:
@@ -995,29 +995,19 @@ static struct unwinder dwarf_unwinder = {
|
||||
|
||||
static void dwarf_unwinder_cleanup(void)
|
||||
{
|
||||
struct rb_node **fde_rb_node = &fde_root.rb_node;
|
||||
struct rb_node **cie_rb_node = &cie_root.rb_node;
|
||||
struct dwarf_fde *fde, *next_fde;
|
||||
struct dwarf_cie *cie, *next_cie;
|
||||
|
||||
/*
|
||||
* Deallocate all the memory allocated for the DWARF unwinder.
|
||||
* Traverse all the FDE/CIE lists and remove and free all the
|
||||
* memory associated with those data structures.
|
||||
*/
|
||||
while (*fde_rb_node) {
|
||||
struct dwarf_fde *fde;
|
||||
|
||||
fde = rb_entry(*fde_rb_node, struct dwarf_fde, node);
|
||||
rb_erase(*fde_rb_node, &fde_root);
|
||||
rbtree_postorder_for_each_entry_safe(fde, next_fde, &fde_root, node)
|
||||
kfree(fde);
|
||||
}
|
||||
|
||||
while (*cie_rb_node) {
|
||||
struct dwarf_cie *cie;
|
||||
|
||||
cie = rb_entry(*cie_rb_node, struct dwarf_cie, node);
|
||||
rb_erase(*cie_rb_node, &cie_root);
|
||||
rbtree_postorder_for_each_entry_safe(cie, next_cie, &cie_root, node)
|
||||
kfree(cie);
|
||||
}
|
||||
|
||||
kmem_cache_destroy(dwarf_reg_cachep);
|
||||
kmem_cache_destroy(dwarf_frame_cachep);
|
||||
|
Reference in New Issue
Block a user