summaryrefslogtreecommitdiffstats
path: root/drivers/edac/i10nm_base.c
diff options
context:
space:
mode:
authorGreg KH <gregkh@linuxfoundation.org>2019-05-08 12:40:42 +0200
committerTony Luck <tony.luck@intel.com>2019-06-20 20:44:36 +0200
commit7adc05d2dc3af95e4e1534841d58f736262142cd (patch)
tree9d4c047fda186cd7d7dcbc665243f3348c2c7212 /drivers/edac/i10nm_base.c
parentEDAC/sysfs: Fix memory leak when creating a csrow object (diff)
downloadlinux-7adc05d2dc3af95e4e1534841d58f736262142cd.tar.xz
linux-7adc05d2dc3af95e4e1534841d58f736262142cd.zip
EDAC/sysfs: Drop device references properly
Do put_device() if device_add() fails. [ bp: do device_del() for the successfully created devices in edac_create_csrow_objects(), on the unwind path. ] Signed-off-by: Greg KH <gregkh@linuxfoundation.org> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20190427214925.GE16338@kroah.com
Diffstat (limited to 'drivers/edac/i10nm_base.c')
0 files changed, 0 insertions, 0 deletions