|
@@ -166,14 +166,14 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
|
|
mgmt_tx = kmalloc(sizeof(*mgmt_tx), GFP_ATOMIC);
|
|
mgmt_tx = kmalloc(sizeof(*mgmt_tx), GFP_ATOMIC);
|
|
if (!mgmt_tx) {
|
|
if (!mgmt_tx) {
|
|
PRINT_ER("Failed to allocate memory for mgmt_tx structure\n");
|
|
PRINT_ER("Failed to allocate memory for mgmt_tx structure\n");
|
|
- return -EFAULT;
|
|
|
|
|
|
+ return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
mgmt_tx->buff = kmalloc(len, GFP_ATOMIC);
|
|
mgmt_tx->buff = kmalloc(len, GFP_ATOMIC);
|
|
if (!mgmt_tx->buff) {
|
|
if (!mgmt_tx->buff) {
|
|
PRINT_ER("Failed to allocate memory for mgmt_tx buff\n");
|
|
PRINT_ER("Failed to allocate memory for mgmt_tx buff\n");
|
|
kfree(mgmt_tx);
|
|
kfree(mgmt_tx);
|
|
- return -EFAULT;
|
|
|
|
|
|
+ return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
mgmt_tx->size = len;
|
|
mgmt_tx->size = len;
|