commit | 62e3a3e342af3c313ab38603811ecdb1fcc79edb | [log] [tgz] |
---|---|---|
author | Prakash Kamliya <pkamliya@codeaurora.org> | Mon Dec 04 19:10:15 2017 +0530 |
committer | Rob Clark <robdclark@gmail.com> | Wed Dec 13 11:12:03 2017 -0500 |
tree | fcf9f3a83dd7daac0a7803b636eea0d53d5c2a49 | |
parent | a1ed6def4410451eeb2ce85b4270e6fe9d3c902c [diff] |
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: Prakash Kamliya <pkamliya@codeaurora.org> Signed-off-by: Sharat Masetty <smasetty@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>