commit | 8bbeb83bebb96ccde2ec66e97196401989f97c15 | [log] [tgz] |
---|---|---|
author | Prabhat Awasthi <pawasthi@codeaurora.org> | Sat Dec 28 12:42:14 2013 +0530 |
committer | Prabhat Awasthi <pawasthi@codeaurora.org> | Mon Jan 06 00:08:48 2014 +0530 |
tree | fffffd19b24afd314a4689f6d3d516bd7c887455 | |
parent | b4f4f9ee711149c7292ff43372e496b57bbe7588 [diff] |
msm: kgsl: Don't open kgsl device in erroneous case If kgsl_get_process_private() returns NULL, it goes to err_stop with result = -ENOMEM. If open_count is 0, adreno_stop() overwrites the result variable with 0. This leads to kgsl_open() to be successful while it shouldn't. Change-Id: Ic12d92a099280e4d958fa192fa5128211120d361 Signed-off-by: Prabhat Awasthi <pawasthi@codeaurora.org>