[PATCH net-next v1] macsec: fix validation failed in asynchronous operation.

David Miller davem at davemloft.net
Mon Feb 20 06:55:54 PST 2017


From: Ryder Lee <ryder.lee at mediatek.com>
Date: Mon, 20 Feb 2017 18:32:30 +0800

> @@ -879,6 +879,9 @@ static void macsec_decrypt_done(struct crypto_async_request *base, int err)
>  
>  	aead_request_free(macsec_skb_cb(skb)->req);
>  
> +	if (err == 0)
> +	 macsec_skb_cb(skb)->valid = true;
> +

This is not indented properly, please use TABs like the rest of
the code does.  And the canonical way to test against zero is
"if (!err)"



More information about the Linux-mediatek mailing list