OSDN Git Service

msm: kgsl: Don't allocate memory for microcode if it is already allocated
authorDeepak Kumar <dkumar@codeaurora.org>
Mon, 16 May 2016 08:22:10 +0000 (13:52 +0530)
committerCarter Cooper <ccooper@codeaurora.org>
Wed, 3 Aug 2016 16:34:03 +0000 (10:34 -0600)
commit8e3020fadb2a19eac5557b91f95353e0ab87356b
tree5a3f450920e0a7eb411d2f54a81b6d8d4eaccfe0
parentb35803e7901f2afafa81ff5dde396856ea5c7426
msm: kgsl: Don't allocate memory for microcode if it is already allocated

This change adds a check to avoid allocating memory for loading microcode
in case it is already allocated. This avoids memory allocation failure
for microcode during multiple tries by userspace to open the kgsl device
in case of errors.

CRs-Fixed: 1043490
Change-Id: I018ebdb0dab1fc13af8d85a273c1c8b477fa1e26
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
drivers/gpu/msm/adreno.c
drivers/gpu/msm/adreno_a5xx.c