projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: wireless: hostap: hostap_ap.c: Return -ENOMEM instead of -1 for if kmalloc(...
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
drivers
/
net
/
wireless
/
hostap
/
hostap_ap.c
diff --git
a/drivers/net/wireless/hostap/hostap_ap.c
b/drivers/net/wireless/hostap/hostap_ap.c
index c6ea995750db80c9664351c079be86be81c70262..dd9a18f8dbcae411bfda2bedb6f762afd2010185 100644
(file)
--- a/
drivers/net/wireless/hostap/hostap_ap.c
+++ b/
drivers/net/wireless/hostap/hostap_ap.c
@@
-376,7
+376,7
@@
int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac)
entry = kmalloc(sizeof(struct mac_entry), GFP_KERNEL);
if (entry == NULL)
- return -
1
;
+ return -
ENOMEM
;
memcpy(entry->addr, mac, ETH_ALEN);