We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 817bced commit aa6f4f9Copy full SHA for aa6f4f9
drivers/dma/idxd/init.c
@@ -326,6 +326,7 @@ static int idxd_setup_groups(struct idxd_device *idxd)
326
rc = dev_set_name(conf_dev, "group%d.%d", idxd->id, group->id);
327
if (rc < 0) {
328
put_device(conf_dev);
329
+ kfree(group);
330
goto err;
331
}
332
@@ -350,7 +351,10 @@ static int idxd_setup_groups(struct idxd_device *idxd)
350
351
while (--i >= 0) {
352
group = idxd->groups[i];
353
put_device(group_confdev(group));
354
355
356
+ kfree(idxd->groups);
357
+
358
return rc;
359
360
0 commit comments