]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: fold tid_ampdu_rx allocations into a flexible array
authorRosen Penev <rosenp@gmail.com>
Fri, 5 Jun 2026 00:56:27 +0000 (17:56 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 5 Jun 2026 07:59:30 +0000 (09:59 +0200)
commitb978c424cbfb1f5ab024db12cf7b813fa4e23ca0
tree482ed8123fab2be323f549a087ea1a519d5c28ef
parentc52b14422573a43917f48c094771a80cbe58f568
wifi: mac80211: fold tid_ampdu_rx allocations into a flexible array

Convert the separately-allocated reorder_buf pointer to a C99 flexible
array member at the end of struct tid_ampdu_rx, with both the
sk_buff_head and the jiffies timestamp in each array element. This
collapses three allocations into one and removes the corresponding
kfree() pairs from the error and free paths.

Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260605005627.317194-1-rosenp@gmail.com
[fix kernel-doc]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c
net/mac80211/rx.c
net/mac80211/sta_info.h