diff options
| author | Lin Ma <[email protected]> | 2023-06-14 12:06:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-06-15 21:59:17 +0000 |
| commit | 44194cb1b6045dea33ae9a0d54fb7e7cd93a2e09 (patch) | |
| tree | e39c62001a59730c923435c40a01c8035c0f105e /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | sfc: fix XDP queues mode with legacy IRQ (diff) | |
| download | kernel-44194cb1b6045dea33ae9a0d54fb7e7cd93a2e09.tar.gz kernel-44194cb1b6045dea33ae9a0d54fb7e7cd93a2e09.zip | |
net: tipc: resize nlattr array to correct size
According to nla_parse_nested_deprecated(), the tb[] is supposed to the
destination array with maxtype+1 elements. In current
tipc_nl_media_get() and __tipc_nl_media_set(), a larger array is used
which is unnecessary. This patch resize them to a proper size.
Fixes: 1e55417d8fc6 ("tipc: add media set to new netlink api")
Fixes: 46f15c6794fb ("tipc: add media get/dump to new netlink api")
Signed-off-by: Lin Ma <[email protected]>
Reviewed-by: Florian Westphal <[email protected]>
Reviewed-by: Tung Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
