Skip to content

Commit 3b08e60

Browse files
ilanpeer2jmberg-intel
authored andcommitted
wifi: iwlwifi: Free pages allocated when failing to build A-MSDU
When failing to prepare the data needed for A-MSDU transmission, the memory allocated for the TSO management was not freed. Fix it. Fixes: 7f5e303 ("wifi: iwlwifi: map entire SKB when sending AMSDUs") Signed-off-by: Ilan Peer <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250209143303.bc27fad9b3d5.Ibf43dd18fb652b1a59061204e081f11c9fa34a3f@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent e0dc2c1 commit 3b08e60

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie

1 file changed

+1
-0
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ iwl_tfh_tfd *iwl_txq_gen2_build_tx_amsdu(struct iwl_trans *trans,
347347
return tfd;
348348

349349
out_err:
350+
iwl_pcie_free_tso_pages(trans, skb, out_meta);
350351
iwl_txq_gen2_tfd_unmap(trans, out_meta, tfd);
351352
return NULL;
352353
}

0 commit comments

Comments
 (0)