ath9k_htc: Fix module unloading issue
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 6 Apr 2010 09:58:15 +0000 (15:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Apr 2010 19:24:10 +0000 (15:24 -0400)
commitc503269a0f77e9b2d6de9e8a5f66ace53dde6e04
treefc525fcf618330b20ff5871659dcd1c59114f8b1
parent66b10e33f742bb45a29b7dbbc8dc85583d4c9ef6
ath9k_htc: Fix module unloading issue

The maximum number of packets in a single buffer in
stream mode is 10. The driver currently uses 8 - which
caused stack corruption, in the absence of any kind
of OOB checking.

Fixing this to the correct value of 10 fixes the module
unload issue.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Tested-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/hif_usb.h