drm/msm: fix leak in failed get_pages
get_pages doesn't keep a reference of the pages allocated when it fails later in the code path. This can lead to a memory leak. Keep reference of the allocated pages so that it can be freed when msm_gem_free_object gets called later during cleanup. Signed-off-by: NPrakash Kamliya <pkamliya@codeaurora.org> Signed-off-by: NSharat Masetty <smasetty@codeaurora.org> Signed-off-by: NRob Clark <robdclark@gmail.com>
Showing
想要评论请 注册 或 登录