[PATCH AUTOSEL for 4.9 155/190] drm/msm: fix leak in failed get_pages

2018-03-07 Thread Sasha Levin
From: Prakash Kamliya [ Upstream commit 62e3a3e342af3c313ab38603811ecdb1fcc79edb ] 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

[PATCH AUTOSEL for 4.9 155/190] drm/msm: fix leak in failed get_pages

2018-03-07 Thread Sasha Levin
From: Prakash Kamliya [ Upstream commit 62e3a3e342af3c313ab38603811ecdb1fcc79edb ] 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