hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c
....@@ -1132,6 +1132,7 @@
11321132 if (dce60_construct(num_virtual_links, dc, pool))
11331133 return &pool->base;
11341134
1135
+ kfree(pool);
11351136 BREAK_TO_DEBUGGER();
11361137 return NULL;
11371138 }
....@@ -1329,6 +1330,7 @@
13291330 if (dce61_construct(num_virtual_links, dc, pool))
13301331 return &pool->base;
13311332
1333
+ kfree(pool);
13321334 BREAK_TO_DEBUGGER();
13331335 return NULL;
13341336 }
....@@ -1522,6 +1524,7 @@
15221524 if (dce64_construct(num_virtual_links, dc, pool))
15231525 return &pool->base;
15241526
1527
+ kfree(pool);
15251528 BREAK_TO_DEBUGGER();
15261529 return NULL;
15271530 }