mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
drm/msm/dsi: use msm_gem_kernel_put to free TX buffer
[ Upstream commit 69b321b2c3df4f7e51a9de587e41f324b0b717b0 ]
Use exiting function to free the allocated GEM object instead of
open-coding it. This has a bonus of internally calling
msm_gem_put_vaddr() to compensate for msm_gem_get_vaddr() in
msm_get_kernel_new().
Fixes: 1e29dff004 ("drm/msm: Add a common function to free kernel buffer objects")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/562239/
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5671bed3c0
commit
8b072ab6c4
@@ -1173,8 +1173,7 @@ static void dsi_tx_buf_free(struct msm_dsi_host *msm_host)
|
|||||||
|
|
||||||
priv = dev->dev_private;
|
priv = dev->dev_private;
|
||||||
if (msm_host->tx_gem_obj) {
|
if (msm_host->tx_gem_obj) {
|
||||||
msm_gem_unpin_iova(msm_host->tx_gem_obj, priv->kms->aspace);
|
msm_gem_kernel_put(msm_host->tx_gem_obj, priv->kms->aspace);
|
||||||
drm_gem_object_put(msm_host->tx_gem_obj);
|
|
||||||
msm_host->tx_gem_obj = NULL;
|
msm_host->tx_gem_obj = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user