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 4958737 commit 56e2f09Copy full SHA for 56e2f09
drivers/dma/idxd/init.c
@@ -324,6 +324,7 @@ static int idxd_setup_groups(struct idxd_device *idxd)
324
rc = dev_set_name(conf_dev, "group%d.%d", idxd->id, group->id);
325
if (rc < 0) {
326
put_device(conf_dev);
327
+ kfree(group);
328
goto err;
329
}
330
@@ -348,7 +349,10 @@ static int idxd_setup_groups(struct idxd_device *idxd)
348
349
while (--i >= 0) {
350
group = idxd->groups[i];
351
put_device(group_confdev(group));
352
353
354
+ kfree(idxd->groups);
355
+
356
return rc;
357
358
0 commit comments