From: David Matlack Date: Tue, 6 May 2014 04:02:32 +0000 (-0700) Subject: staging: slicoss: fix multiple free-after-free in slic_entry_remove X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~568 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a286e34de0568903e93d54beb1c62ce19f1b5031;p=pandora-kernel.git staging: slicoss: fix multiple free-after-free in slic_entry_remove This patch fixes two free-after-free bugs in slic_entry_remove. Specifically, slic_unmap_mmio_space() iounmaps adapter->slic_regs, which is the same region of memory as dev->base_addr (iounmap-ed a few lines later). Next, both release_mem_region() and pci_release_regions() are called on the same pci_dev struct. Signed-off-by: David Matlack Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed