projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mac80211: Don't squash error codes in key setup functions
[deliverable/linux.git]
/
net
/
mac80211
/
cfg.c
diff --git
a/net/mac80211/cfg.c
b/net/mac80211/cfg.c
index 29ac8e1a509e48ec1170f61f668d8d3d5712d501..19c6146010b7f2e29e05d8cf38f15bb44ac015db 100644
(file)
--- a/
net/mac80211/cfg.c
+++ b/
net/mac80211/cfg.c
@@
-150,8
+150,8
@@
static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev,
key = ieee80211_key_alloc(alg, key_idx, params->key_len, params->key,
params->seq_len, params->seq);
- if (
!key
)
- return
-ENOMEM
;
+ if (
IS_ERR(key)
)
+ return
PTR_ERR(key)
;
mutex_lock(&sdata->local->sta_mtx);
This page took
0.026905 seconds
and
5
git commands to generate.