[Freedreno] [PATCH] drm/msm: fix leak in failed get_pages

2017-12-04 Thread Sharat Masetty
From: Prakash Kamliya 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: Prakash Ka

[Freedreno] [PATCH] drm/msm: fix leak in failed get_pages

2017-12-04 Thread Sharat Masetty
From: Prakash Kamliya 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: Prakash Ka