]> git.baikalelectronics.ru Git - kernel.git/commit
iwl4965: fix skb usage after free
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 20 Apr 2011 14:01:46 +0000 (16:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Apr 2011 20:05:59 +0000 (16:05 -0400)
commitcb46fe1e7c56b4b04bff065ecbc699ca8028c91d
tree2717c5d0c0f1437e63b6d77565b1fd4dc39b13b2
parentaa065497e36d4b6c43960acfae44af4abd7851d1
iwl4965: fix skb usage after free

Since

commit c6f0a40d7cd986f870eb0fda707c5b507a2e27c4
Author: Stanislaw Gruszka <sgruszka@redhat.com>
Date:   Fri Feb 19 15:47:33 2010 -0800

    iwlwifi: sanity check before counting number of tfds can be free

we use skb->data after calling ieee80211_tx_status_irqsafe(), which
could free skb instantly.

On current kernels I do not observe practical problems related with
bug, but on 2.6.35.y it cause random system hangs when stressing
wireless link, making bisection of other problems impossible.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/iwl-4965-tx.c