diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-03-08 13:16:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-23 11:21:22 -0700 |
commit | a4599a9b8c0189e7db0ca426f107e2c0d1f472bd (patch) | |
tree | e2c23de0af05cba6aa7168392e9d34142a3e336b /lib/gcd.c | |
parent | 3634665532be2d0b3281e9a6a9159dfa7f1d699d (diff) |
iwl3945: fix possible il->txq NULL pointer dereference in delayed works
commit 210787e82a0ac1ffb5d7be1c796f0c51050849ad upstream.
On il3945_down procedure we free tx queue data and nullify il->txq
pointer. After that we drop mutex and then cancel delayed works. There
is possibility, that after drooping mutex and before the cancel, some
delayed work will start and crash while trying to send commands to
the device. For example, here is reported crash in
il3945_bg_reg_txpower_periodic():
https://bugzilla.kernel.org/show_bug.cgi?id=42766#c10
Patch fix problem by adding il->txq check on works that send commands,
hence utilize tx queue.
Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions