aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7core_edac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 9cd0b301f81b..5da90ded54b6 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -1177,7 +1177,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci)
1177 1177
1178 pvt->addrmatch_dev = kzalloc(sizeof(*pvt->addrmatch_dev), GFP_KERNEL); 1178 pvt->addrmatch_dev = kzalloc(sizeof(*pvt->addrmatch_dev), GFP_KERNEL);
1179 if (!pvt->addrmatch_dev) 1179 if (!pvt->addrmatch_dev)
1180 return rc; 1180 return -ENOMEM;
1181 1181
1182 pvt->addrmatch_dev->type = &addrmatch_type; 1182 pvt->addrmatch_dev->type = &addrmatch_type;
1183 pvt->addrmatch_dev->bus = mci->dev.bus; 1183 pvt->addrmatch_dev->bus = mci->dev.bus;
@@ -1198,7 +1198,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci)
1198 if (!pvt->chancounts_dev) { 1198 if (!pvt->chancounts_dev) {
1199 put_device(pvt->addrmatch_dev); 1199 put_device(pvt->addrmatch_dev);
1200 device_del(pvt->addrmatch_dev); 1200 device_del(pvt->addrmatch_dev);
1201 return rc; 1201 return -ENOMEM;
1202 } 1202 }
1203 1203
1204 pvt->chancounts_dev->type = &all_channel_counts_type; 1204 pvt->chancounts_dev->type = &all_channel_counts_type;