diff options
| author | Antoine Tenart <[email protected]> | 2021-06-24 09:38:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-24 19:41:12 +0000 |
| commit | c309217f91f2d2097c2a0a832d9bff50b88c81dc (patch) | |
| tree | a801e4b22f45d4e7a4da5c50bfecc224ea2fed55 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | |
| parent | net: macsec: fix the length used to copy the key for offloading (diff) | |
| download | kernel-c309217f91f2d2097c2a0a832d9bff50b88c81dc.tar.gz kernel-c309217f91f2d2097c2a0a832d9bff50b88c81dc.zip | |
net: phy: mscc: fix 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: 28c5107aa904 ("net: phy: mscc: macsec support")
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
