mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user