Re: [PATCH] drm/radeon: Prefer kcalloc over open coded arithmetic

2021-09-07 Thread Alex Deucher
Applied. Thanks! Alex On Sat, Sep 4, 2021 at 11:41 AM Len Baker wrote: > > As noted in the "Deprecated Interfaces, Language Features, Attributes, > and Conventions" documentation [1], size calculations (especially > multiplication) should not be performed in memory allocator (or similar) >

[PATCH] drm/radeon: Prefer kcalloc over open coded arithmetic

2021-09-06 Thread Len Baker
As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them overflowing. This could lead to values