aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c
index c6ea995750db..dd9a18f8dbca 100644
--- 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)
376 376
377 entry = kmalloc(sizeof(struct mac_entry), GFP_KERNEL); 377 entry = kmalloc(sizeof(struct mac_entry), GFP_KERNEL);
378 if (entry == NULL) 378 if (entry == NULL)
379 return -1; 379 return -ENOMEM;
380 380
381 memcpy(entry->addr, mac, ETH_ALEN); 381 memcpy(entry->addr, mac, ETH_ALEN);
382 382