Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream
Conflicts: drivers/net/wireless/zd1211rw/zd_mac.h net/ieee80211/softmac/ieee80211softmac_assoc.c
This commit is contained in:
@@ -347,14 +347,12 @@ static int hfa384x_cmd(struct net_device *dev, u16 cmd, u16 param0,
|
||||
if (signal_pending(current))
|
||||
return -EINTR;
|
||||
|
||||
entry = (struct hostap_cmd_queue *)
|
||||
kmalloc(sizeof(*entry), GFP_ATOMIC);
|
||||
entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
|
||||
if (entry == NULL) {
|
||||
printk(KERN_DEBUG "%s: hfa384x_cmd - kmalloc failed\n",
|
||||
dev->name);
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
atomic_set(&entry->usecnt, 1);
|
||||
entry->type = CMD_SLEEP;
|
||||
entry->cmd = cmd;
|
||||
@@ -517,14 +515,12 @@ static int hfa384x_cmd_callback(struct net_device *dev, u16 cmd, u16 param0,
|
||||
return -1;
|
||||
}
|
||||
|
||||
entry = (struct hostap_cmd_queue *)
|
||||
kmalloc(sizeof(*entry), GFP_ATOMIC);
|
||||
entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
|
||||
if (entry == NULL) {
|
||||
printk(KERN_DEBUG "%s: hfa384x_cmd_callback - kmalloc "
|
||||
"failed\n", dev->name);
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
atomic_set(&entry->usecnt, 1);
|
||||
entry->type = CMD_CALLBACK;
|
||||
entry->cmd = cmd;
|
||||
@@ -3016,14 +3012,12 @@ static int prism2_set_tim(struct net_device *dev, int aid, int set)
|
||||
iface = netdev_priv(dev);
|
||||
local = iface->local;
|
||||
|
||||
new_entry = (struct set_tim_data *)
|
||||
kmalloc(sizeof(*new_entry), GFP_ATOMIC);
|
||||
new_entry = kzalloc(sizeof(*new_entry), GFP_ATOMIC);
|
||||
if (new_entry == NULL) {
|
||||
printk(KERN_DEBUG "%s: prism2_set_tim: kmalloc failed\n",
|
||||
local->dev->name);
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(new_entry, 0, sizeof(*new_entry));
|
||||
new_entry->aid = aid;
|
||||
new_entry->set = set;
|
||||
|
||||
|
Reference in New Issue
Block a user