Fixed oops if an uninitialized key is used for encryption.
authorHong Liu <hong.liu@intel.com>
Thu, 20 Oct 2005 16:06:36 +0000 (11:06 -0500)
committerJames Ketrenos <jketreno@linux.intel.com>
Thu, 20 Oct 2005 16:06:36 +0000 (11:06 -0500)
commitf0f15ab5542f73d07e35eeee713df289599427b2
tree4e511a4d571f5cf9838c99bd9bb5b6e06a06e263
parent5b74eda78db410b979b7d450221c971fdebf5d29
Fixed oops if an uninitialized key is used for encryption.

Without this patch, if you try and use a key that has not been
configured, for example:

% iwconfig eth1 key deadbeef00 [2]

without having configured key [1], then the active key will still be
[1], but privacy will now be enabled.  Transmission of a packet in this
situation will result in a kernel oops.

Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
net/ieee80211/ieee80211_tx.c