diff options
| author | Kamenee Arumugam <[email protected]> | 2018-02-01 20:37:30 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-02-01 22:43:32 +0000 |
| commit | 953a9cebeab43f33baed79d1a9ef643bfb249c4b (patch) | |
| tree | 139004705604d5121675065b3ec0ebd26ce5b9a3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | IB/core: Avoid a potential OOPs for an unused optional parameter (diff) | |
| download | kernel-953a9cebeab43f33baed79d1a9ef643bfb249c4b.tar.gz kernel-953a9cebeab43f33baed79d1a9ef643bfb249c4b.zip | |
IB/hfi1: Convert kzalloc_node and kcalloc to use kcalloc_node
Kzalloc_node API doesn't check for overflows in size multiplication.
While kcalloc API check for overflows in size multiplication
but these implementations are not NUMA-aware.
This conversion allowed for correcting an allocation used in the hot
path to be on the local NUMA and ensure us overflow free multiplication
for the size of a memory allocation.
Reviewed-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Kamenee Arumugam <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
