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-08-16 15:26:38 -04:00
2008-07-08 14:16:02 -04:00
2010-08-16 15:26:38 -04:00
2009-01-29 16:00:02 -05:00
2010-06-14 15:39:28 -04:00
2010-06-14 15:39:28 -04:00
2010-08-16 15:26:38 -04:00
2007-10-10 16:52:34 -07:00
2010-05-28 13:41:27 -04:00
2010-06-15 16:00:49 -04:00
2009-01-29 16:00:03 -05:00
2010-04-15 16:21:34 -04:00
2009-12-21 18:38:52 -05:00
2010-06-14 15:39:27 -04:00
2008-03-06 15:30:46 -05:00
2010-06-03 14:14:41 -04:00
2010-05-17 23:23:14 -07:00
2010-06-29 14:51:23 -04:00
2009-08-04 16:43:25 -04:00
2010-06-29 14:51:23 -04:00
2009-07-10 15:01:49 -04:00
2010-07-16 14:03:42 -04:00
2010-07-21 15:13:42 -04:00
2010-08-16 15:26:37 -04:00
2010-08-16 14:39:46 -04:00
2010-06-30 15:00:53 -04:00
2010-08-16 15:26:38 -04:00
2010-07-27 14:59:58 -04:00
2010-03-30 22:02:32 +09:00
2008-04-08 16:44:45 -04:00
2010-08-16 15:26:37 -04:00
2010-06-02 16:12:59 -04:00
2010-06-14 15:38:17 -04:00
2010-06-14 15:38:17 -04:00
2010-06-24 15:42:30 -04:00
2010-06-14 15:39:26 -04:00
2010-06-14 15:39:26 -04:00
2008-07-08 14:16:01 -04:00
2008-07-08 14:16:01 -04:00
2010-08-16 15:26:37 -04:00
2010-01-15 16:58:28 -05:00
2010-06-14 15:38:17 -04:00
2010-03-30 22:02:32 +09:00
2010-06-02 16:12:59 -04:00
2010-04-11 14:53:53 -07:00
2010-06-24 15:42:18 -04:00
2010-07-26 15:32:41 -04:00
2010-06-24 15:42:18 -04:00
2010-07-26 15:09:04 -04:00
2010-03-10 17:44:23 -05:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2008-10-31 19:00:23 -04:00
2010-08-16 15:26:36 -04:00
2010-08-16 15:26:37 -04:00
2009-12-21 18:38:52 -05:00
2010-07-27 14:59:58 -04:00
2010-06-28 15:16:20 -04:00
2010-06-28 15:14:51 -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-26 15:32:42 -04:00
2010-07-16 14:03:42 -04:00
2010-07-08 16:35:50 -04:00
2010-01-06 15:35:49 -05: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
2009-01-29 16:00:02 -05:00