[Intel-gfx] [PATCH v7 7/7] drm: add parameter-order checking to drm memory allocators

2016-03-02 Thread Tvrtko Ursulin
On 01/03/16 16:33, Dave Gordon wrote: > After the recent addition of drm_malloc_gfp(), it was noticed that > some callers of these functions has swapped the parameters in the > call - it's supposed to be 'number of members' and 'sizeof(element)', > but a few callers had got the size first and the

[PATCH v7 7/7] drm: add parameter-order checking to drm memory allocators

2016-03-01 Thread Dave Gordon
After the recent addition of drm_malloc_gfp(), it was noticed that some callers of these functions has swapped the parameters in the call - it's supposed to be 'number of members' and 'sizeof(element)', but a few callers had got the size first and the count second. This isn't otherwise detected bec