drm/rockchip: free memory in vop bandwidth interface

The array won't be used again, it is quite safe to free
it there.

Change-Id: I3bc201fbdead819cc47a08848acd66797c82e0f5
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
Randy Li
2017-10-17 15:05:06 +08:00
committed by Huang, Tao
parent 6432a58d1b
commit aefa4a4728

View File

@@ -1834,6 +1834,7 @@ static size_t vop_crtc_bandwidth(struct drm_crtc *crtc,
sort(pbandwidth, cnt, sizeof(pbandwidth[0]), vop_bandwidth_cmp, NULL);
bandwidth = vop_calc_max_bandwidth(pbandwidth, 0, cnt, vdisplay);
kfree(pbandwidth);
/*
* bandwidth(MB/s)
* = line_bandwidth / line_time