rt2x00: fix usage of NULL queue
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 2 Aug 2011 11:29:02 +0000 (13:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Aug 2011 17:48:14 +0000 (13:48 -0400)
commit00898a47269ae5e6dda04defad00234b96692d95
tree96d5fb9e5c10bfe8e55c32072e7ee08342920330
parent449f94eadc91d69fa044fa92ef45c02e86559e13
rt2x00: fix usage of NULL queue

We may call rt2x00queue_pause_queue(queue) with queue == NULL. Bug
was introduced by commit 62fe778412b36791b7897cfa139342906fbbf07b
"rt2x00: Fix stuck queue in tx failure case" .

Cc: stable@kernel.org # 3.0+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c