summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-clps711x.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2016-04-21 10:34:14 -0700
committerBorislav Petkov <bp@suse.de>2016-04-23 13:23:54 +0200
commitab67b6c22d8506b060a66ed0ce1a3e14e3b075e4 (patch)
tree1ad90c7cb045e161d6ab5718165af1eb498be4b0 /drivers/irqchip/irq-clps711x.c
parent1aa6eb5c5b35771cfb28265eccd99b4b203b4154 (diff)
downloadtalos-op-linux-ab67b6c22d8506b060a66ed0ce1a3e14e3b075e4.tar.gz
talos-op-linux-ab67b6c22d8506b060a66ed0ce1a3e14e3b075e4.zip
EDAC: Fix used after kfree() error in edac_unregister_sysfs()
Code flow looks like this: device_unregister(&mci->dev); -> kobject_put+0x25/0x50 -> kobject_cleanup+0x77/0x190 -> device_release+0x32/0xa0 -> mci_attr_release+0x36/0x70 -> kfree(mci); bus_unregister(mci->bus); Fix is to grab a local copy of "mci->bus" and use that when we call bus_unregister(). Signed-off-by: Tony Luck <tony.luck@intel.com> Acked-by: Aristeu Rozanski <aris@redhat.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/21d595b0ab3d718d9cb206647f4ec91c05e62ec4.1461261078.git.tony.luck@intel.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/irqchip/irq-clps711x.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud