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)
commitf09c256375c7cf1e112b8ef6306cdd313490d7c0
tree1f888356fb5c0b2ee13b8a5d14990719eeb3c398
parent299af9d3db0fd3a4994e5e66717ecd276bdd60da
airo: fix setting zero length WEP key

Patch prevents call set_wep_key() with zero key length. That fix long
standing regression since commit c0380693520b1a1e4f756799a0edc379378b462a
"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