Skip to content

Commit 3240eac

Browse files
qsndavem330
authored andcommitted
macsec: fix error message in macsec_add_rxsa and _txsa
The expected length is MACSEC_SALT_LEN, not MACSEC_SA_ATTR_SALT. Fixes: 48ef50f ("macsec: Netlink support of XPN cipher suites (IEEE 802.1AEbw)") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f46040e commit 3240eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/macsec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ static int macsec_add_rxsa(struct sk_buff *skb, struct genl_info *info)
17701770
if (nla_len(tb_sa[MACSEC_SA_ATTR_SALT]) != MACSEC_SALT_LEN) {
17711771
pr_notice("macsec: nl: add_rxsa: bad salt length: %d != %d\n",
17721772
nla_len(tb_sa[MACSEC_SA_ATTR_SALT]),
1773-
MACSEC_SA_ATTR_SALT);
1773+
MACSEC_SALT_LEN);
17741774
rtnl_unlock();
17751775
return -EINVAL;
17761776
}
@@ -2012,7 +2012,7 @@ static int macsec_add_txsa(struct sk_buff *skb, struct genl_info *info)
20122012
if (nla_len(tb_sa[MACSEC_SA_ATTR_SALT]) != MACSEC_SALT_LEN) {
20132013
pr_notice("macsec: nl: add_txsa: bad salt length: %d != %d\n",
20142014
nla_len(tb_sa[MACSEC_SA_ATTR_SALT]),
2015-
MACSEC_SA_ATTR_SALT);
2015+
MACSEC_SALT_LEN);
20162016
rtnl_unlock();
20172017
return -EINVAL;
20182018
}

0 commit comments

Comments
 (0)