Ben Hutchings 1ac62ba7c9 mac80211: Don't squash error codes in key setup functions
ieee80211_add_key() currently returns -ENOMEM in case of any error,
including a missing crypto algorithm.  Change ieee80211_key_alloc()
and ieee80211_aes_{key_setup_encrypt,cmac_key_setup}() to encode
errors with ERR_PTR() rather than returning NULL, and change
ieee80211_add_key() accordingly.

Compile-tested only.

Reported-by: Marcin Owsiany <porridge@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-08-16 15:26:38 -04:00
..
2010-05-28 13:41:27 -04:00
2010-06-03 14:14:41 -04:00
2009-07-10 15:01:49 -04:00
2010-07-21 15:13:42 -04:00
2008-04-08 16:44:45 -04:00
2010-08-16 15:26:37 -04:00
2010-06-14 15:38:17 -04:00
2010-08-16 15:26:37 -04:00
2010-06-14 15:38:17 -04:00
2010-08-16 15:26:37 -04:00
2010-07-08 16:35:50 -04:00
2010-07-08 16:35:50 -04:00
2010-07-28 16:24:01 -04:00
2010-07-08 16:35:50 -04:00
2010-01-05 16:21:40 -05:00
2010-08-16 15:26:37 -04:00
2010-07-08 16:35:50 -04:00