File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -3033,7 +3033,6 @@ __ieee80211_rx_h_amsdu(struct ieee80211_rx_data *rx, u8 data_offset)
3033
3033
struct ieee80211_hdr * hdr = (struct ieee80211_hdr * )skb -> data ;
3034
3034
__le16 fc = hdr -> frame_control ;
3035
3035
struct sk_buff_head frame_list ;
3036
- ieee80211_rx_result res ;
3037
3036
struct ethhdr ethhdr ;
3038
3037
const u8 * check_da = ethhdr .h_dest , * check_sa = ethhdr .h_source ;
3039
3038
@@ -3095,24 +3094,18 @@ __ieee80211_rx_h_amsdu(struct ieee80211_rx_data *rx, u8 data_offset)
3095
3094
while (!skb_queue_empty (& frame_list )) {
3096
3095
rx -> skb = __skb_dequeue (& frame_list );
3097
3096
3098
- res = ieee80211_rx_mesh_data (rx -> sdata , rx -> sta , rx -> skb );
3099
- switch (res ) {
3097
+ switch (ieee80211_rx_mesh_data (rx -> sdata , rx -> sta , rx -> skb )) {
3100
3098
case RX_QUEUED :
3101
- continue ;
3102
- case RX_CONTINUE :
3103
3099
break ;
3100
+ case RX_CONTINUE :
3101
+ if (ieee80211_frame_allowed (rx , fc )) {
3102
+ ieee80211_deliver_skb (rx );
3103
+ break ;
3104
+ }
3105
+ fallthrough ;
3104
3106
default :
3105
- goto free ;
3107
+ dev_kfree_skb ( rx -> skb ) ;
3106
3108
}
3107
-
3108
- if (!ieee80211_frame_allowed (rx , fc ))
3109
- goto free ;
3110
-
3111
- ieee80211_deliver_skb (rx );
3112
- continue ;
3113
-
3114
- free :
3115
- dev_kfree_skb (rx -> skb );
3116
3109
}
3117
3110
3118
3111
return RX_QUEUED ;
You can’t perform that action at this time.
0 commit comments