aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/macsec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c
index 75aebf65cd09..8ec73d677123 100644
--- a/drivers/net/macsec.c
+++ b/drivers/net/macsec.c
@@ -1099,10 +1099,9 @@ static rx_handler_result_t macsec_handle_frame(struct sk_buff **pskb)
1099 } 1099 }
1100 1100
1101 skb = skb_unshare(skb, GFP_ATOMIC); 1101 skb = skb_unshare(skb, GFP_ATOMIC);
1102 if (!skb) { 1102 *pskb = skb;
1103 *pskb = NULL; 1103 if (!skb)
1104 return RX_HANDLER_CONSUMED; 1104 return RX_HANDLER_CONSUMED;
1105 }
1106 1105
1107 pulled_sci = pskb_may_pull(skb, macsec_extra_len(true)); 1106 pulled_sci = pskb_may_pull(skb, macsec_extra_len(true));
1108 if (!pulled_sci) { 1107 if (!pulled_sci) {