zd1211rw: fix potential array underflow
authorDan Carpenter <error27@gmail.com>
Sat, 27 Feb 2010 06:12:34 +0000 (09:12 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Mar 2010 19:28:49 +0000 (14:28 -0500)
commit86baf712295a00d664da8566186b67041c89b15b
tree1c9fca9c5633e552aaf3f2b9acc26f5e21d12592
parent3082a2b7b1af1b1508c1c3fa589566064f926f40
zd1211rw: fix potential array underflow

The first chunk fixes a debugging assert to print a warning about array underflows.
The second chunk corrects a potential array underflow.  I also removed an assert
in the second chunk because it can no longer happen.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_mac.c