RE: [PATCH][next] drm/amdgpu: Fix sizeof() mismatch in bps_bo kmalloc_array creation

2020-11-25 Thread Chen, Guchun
[AMD Public Use] Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Colin King Sent: Wednesday, November 25, 2020 10:18 PM To: Deucher, Alexander ; Koenig, Christian ; David Airlie ; Daniel Vetter ; Zhou1, Tao ; Chen, Guchun ; amd-...@lists.freedesktop.org; dri-de..

Re: [PATCH][next] drm/amdgpu: Fix sizeof() mismatch in bps_bo kmalloc_array creation

2020-11-25 Thread Christian König
Am 25.11.20 um 15:18 schrieb Colin King: From: Colin Ian King An incorrect sizeof() is being used, sizeof((*data)->bps_bo) is not correct, it should be sizeof(*(*data)->bps_bo). It just so happens to work because the sizes are the same. Fix it. Addresses-Coverity: ("Sizeof not portable (SIZE