summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aquantia/atlantic
diff options
context:
space:
mode:
authorAntoine Tenart <atenart@kernel.org>2021-06-24 12:38:29 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-24 22:41:12 +0300
commitc309217f91f2d2097c2a0a832d9bff50b88c81dc (patch)
treea801e4b22f45d4e7a4da5c50bfecc224ea2fed55 /drivers/net/ethernet/aquantia/atlantic
parent1f7fe5121127e037b86592ba42ce36515ea0e3f7 (diff)
downloadlinux-c309217f91f2d2097c2a0a832d9bff50b88c81dc.tar.xz
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 <liorna@nvidia.com> Signed-off-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic')
0 files changed, 0 insertions, 0 deletions