Skip to contentSkip to conversation

macsec: fix validation failed in asynchronous operation.

PATCH Superseded Ryder Lee 1 participant 1 message Jan 20, 2017

Subsystems (4)
lore
Share & tools
lore

Ryder Lee

author
#0 lore raw

PATCH 1/1 macsec: fix validation failed in asynchronous operation.

Add missing "macsec_skb_cb(skb)->valid = true" in callback function macsec_decrypt_done(), this fixes packet validation failed while decrypting asynchronously.

---
 drivers/net/macsec.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/macsec.c +1 -0
index f83cf66..2a6ab5a 100644
@@ -880,6 +880,7 @@ static void macsec_decrypt_done(struct crypto_async_request *base, int err)
 	aead_request_free(macsec_skb_cb(skb)->req);
 
 	rcu_read_lock_bh();
+	macsec_skb_cb(skb)->valid = true;
 	pn = ntohl(macsec_ethhdr(skb)->packet_number);
 	if (!macsec_post_decrypt(skb, &macsec->secy, pn)) {
 		rcu_read_unlock_bh();
Signature · 1 line
1.9.1