Re: [PATCH] drm/amd/display: fix memory leaks on error exit return

2017-11-22 Thread Harry Wentland
On 2017-11-22 11:47 AM, Colin King wrote: > From: Colin Ian King > > Currently in the case where some of the allocations fail for dce110_tgv, > dce110_xfmv, dce110_miv or dce110_oppv then the exit return path ends > up leaking allocated objects. Fix this by kfree'ing

[PATCH] drm/amd/display: fix memory leaks on error exit return

2017-11-22 Thread Colin King
From: Colin Ian King Currently in the case where some of the allocations fail for dce110_tgv, dce110_xfmv, dce110_miv or dce110_oppv then the exit return path ends up leaking allocated objects. Fix this by kfree'ing them before returning. Also re-work the comparison of