]> git.baikalelectronics.ru Git - kernel.git/commit
airo: fix setting zero length WEP key
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 2 Feb 2010 14:34:50 +0000 (15:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Feb 2010 21:03:41 +0000 (16:03 -0500)
commit642bb8bec0cccadb46a40cf16076681c8e51428a
tree1f888356fb5c0b2ee13b8a5d14990719eeb3c398
parent9455f75e1ba19f65cf80fc25d1f8679c8bc1eb18
airo: fix setting zero length WEP key

Patch prevents call set_wep_key() with zero key length. That fix long
standing regression since commit 266341a091215092abee92759b4384d59a57fc17
"airo: clean up WEP key operations". Additionally print call trace when
someone will try to use improper parameters, and remove key.len = 0
assignment, because it is in not possible code path.

Reported-by: Chris Siebenmann <cks-rhbugzilla@cs.toronto.edu>
Bisected-by: Chris Siebenmann <cks-rhbugzilla@cs.toronto.edu>
Tested-by: Chris Siebenmann <cks@cs.toronto.edu>
Cc: Dan Williams <dcbw@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c