mac80211: fix debugfs default key oops
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 2 May 2008 23:04:47 +0000 (01:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2008 01:18:05 +0000 (21:18 -0400)
commit78520cad4b222d81fa18f2dcfa52394d8d1722b0
tree76f69aafe51620373cb805fd69782ec3970280dd
parentd5251aea1539ec89dd567e75169c568b5243b6fa
mac80211: fix debugfs default key oops

Under certain circumstances (in AP mode) the debugfs function
that is supposed to add the default key symlink can encounter
a NULL default_key pointer. This patch makes it handle that
situtation gracefully.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/debugfs_key.c