diff options
| author | Christophe JAILLET <[email protected]> | 2023-08-20 09:51:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-30 19:26:38 +0000 |
| commit | a23abe1fbdc16358ca185b4681fef19ec75b79c3 (patch) | |
| tree | 3f4487ccc4df1d28e5b84e8c4694b8f8d29b06bb /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdgpu: Explicitly add a flexible array at the end of 'struct amdgpu_bo_l... (diff) | |
| download | kernel-a23abe1fbdc16358ca185b4681fef19ec75b79c3.tar.gz kernel-a23abe1fbdc16358ca185b4681fef19ec75b79c3.zip | |
drm/amdgpu: Remove a redundant sanity check
The case where 'num_entries' is too big, is already handled by
struct_size(), because kvmalloc() would fail.
It will return -ENOMEM instead of -EINVAL, but it is only related to a
unlikely to happen sanity check.
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
