Re: [PATCH v2] drm/gma500: fix double freeing

2015-10-07 Thread Patrik Jakobsson
On Tue, Oct 6, 2015 at 5:48 PM, Sudip Mukherjee wrote: > We are allocating backing using psbfb_alloc() and so > backing->stolen is always true. So we were freeing backing two times. > Moreover if we follow the execution path then we should be freeing > backing after we have released the helper. So

[PATCH v2] drm/gma500: fix double freeing

2015-10-06 Thread Sudip Mukherjee
We are allocating backing using psbfb_alloc() and so backing->stolen is always true. So we were freeing backing two times. Moreover if we follow the execution path then we should be freeing backing after we have released the helper. So remove the one which frees backing before the helper is release