mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "msm: kgsl: Access map_count only if entry is successfully allocated"
This commit is contained in:
commit
bb5fc77fb3
1 changed files with 1 additions and 1 deletions
|
|
@ -252,9 +252,9 @@ static struct kgsl_mem_entry *kgsl_mem_entry_create(void)
|
|||
kref_init(&entry->refcount);
|
||||
/* put this ref in userspace memory alloc and map ioctls */
|
||||
kref_get(&entry->refcount);
|
||||
atomic_set(&entry->map_count, 0);
|
||||
}
|
||||
|
||||
atomic_set(&entry->map_count, 0);
|
||||
return entry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue