diff options
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/hwmem/hwmem-main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/hwmem/hwmem-main.c b/drivers/misc/hwmem/hwmem-main.c index fbfd8502a1d..9223bdd013b 100644 --- a/drivers/misc/hwmem/hwmem-main.c +++ b/drivers/misc/hwmem/hwmem-main.c @@ -154,6 +154,7 @@ static void clean_alloc(struct hwmem_alloc *alloc) } alloc->flags = 0; + atomic_set(&alloc->ref_cnt, 0); clean_hwmem_alloc_threadg_info_list(alloc); |