aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorRoman Li <[email protected]>2021-05-10 11:58:54 -0400
committerAlex Deucher <[email protected]>2021-06-02 17:55:10 -0400
commitc5699e2d863f58221044efdc3fa712dd32d55cde (patch)
tree86330f5fa61222160d7ee2b7b3f3c61fa71cfd01 /drivers/fpga/fpga-bridge.c
parentdce3d8e1d070900e0feeb06787a319ff9379212c (diff)
drm/amd/display: Fix potential memory leak in DMUB hw_init
[Why] On resume we perform DMUB hw_init which allocates memory: dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc That results in memory leak in suspend/resume scenarios. [How] Allocate memory for the DC wrapper to DMUB only if it was not allocated before. No need to reallocate it on suspend/resume. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Roman Li <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions