Message ID | b9a29f40a05f49fa5def9d1a6575888d566b16b9.1667204360.git.sd@queasysnail.net (mailing list archive) |
---|---|
State | Accepted |
Commit | aaab73f8fba4fd38f4d2617440d541a1c334e819 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | macsec: offload-related fixes | expand |
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 700a8f96c6c2..85376d2f24ca 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -1839,6 +1839,7 @@ static int macsec_add_rxsa(struct sk_buff *skb, struct genl_info *info) secy->key_len); err = macsec_offload(ops->mdo_add_rxsa, &ctx); + memzero_explicit(ctx.sa.key, secy->key_len); if (err) goto cleanup; } @@ -2081,6 +2082,7 @@ static int macsec_add_txsa(struct sk_buff *skb, struct genl_info *info) secy->key_len); err = macsec_offload(ops->mdo_add_txsa, &ctx); + memzero_explicit(ctx.sa.key, secy->key_len); if (err) goto cleanup; }