From: Felix Fietkau Date: Thu, 24 May 2012 12:32:20 +0000 (+0200) Subject: ath9k: fix a use-after-free-bug when ath_tx_setup_buffer() fails X-Git-Tag: v3.5-rc1~35^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81357a281dcc454841532c46b30e6f2ba12b73ea;p=pandora-kernel.git ath9k: fix a use-after-free-bug when ath_tx_setup_buffer() fails ath_tx_setup_buffer() can fail if there is no ath_buf left, or if mapping DMA failed. In this case it frees the skb passed to it. If ath_tx_setup_buffer is called from ath_tx_form_aggr, the skb is still linked into the tid buffer list and must be dequeued before being released. Signed-off-by: Felix Fietkau Cc: stable@vger.kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed