rt2x00: fix usage of NULL queue
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 2 Aug 2011 11:29:02 +0000 (13:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:32 +0000 (18:31 -0700)
commit07e1a60a732bbd4142d068302d09470d8441d1dc
tree4cfa132b85a3b040021170363005b5cdbdc26f5c
parente10eea625f8c07e5c9ec205cf2c6854d9c536b67
rt2x00: fix usage of NULL queue

commit 00898a47269ae5e6dda04defad00234b96692d95 upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/rt2x00/rt2x00mac.c