diff options
| author | Antoine Tenart <[email protected]> | 2021-06-24 09:38:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-24 19:41:13 +0000 |
| commit | d67fb4772d9a6cfd10f1109f0e7b1e6eb58c8e16 (patch) | |
| tree | c7466d702d0f11a6794c53e5dc986dd08ea4ad4f /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | |
| parent | net: phy: mscc: fix macsec key length (diff) | |
| download | kernel-d67fb4772d9a6cfd10f1109f0e7b1e6eb58c8e16.tar.gz kernel-d67fb4772d9a6cfd10f1109f0e7b1e6eb58c8e16.zip | |
net: atlantic: fix the macsec key length
The key length used to store the macsec key was set to MACSEC_KEYID_LEN
(16), which is an issue as:
- This was never meant to be the key length.
- The key length can be > 16.
Fix this by using MACSEC_MAX_KEY_LEN instead (the max length accepted in
uAPI).
Fixes: 27736563ce32 ("net: atlantic: MACSec egress offload implementation")
Fixes: 9ff40a751a6f ("net: atlantic: MACSec ingress offload implementation")
Reported-by: Lior Nahmanson <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h')
0 files changed, 0 insertions, 0 deletions
