diff options
author | David S. Miller <davem@davemloft.net> | 2010-06-11 14:34:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-11 14:34:06 -0400 |
commit | 14599f1e341ee219abdd15f4eee5872d6f2d29f1 (patch) | |
tree | 3875181429010e58416ab34e6c06ef42de52e756 /drivers/net/wireless/iwmc3200wifi | |
parent | d8d1f30b95a635dbd610dcc5eb641aca8f4768cf (diff) | |
parent | 832c10fd733893f86c63bde1c65b005d5a2fe346 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Conflicts:
drivers/net/wireless/wl12xx/wl1271.h
drivers/net/wireless/wl12xx/wl1271_cmd.h
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/hal.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/hal.c b/drivers/net/wireless/iwmc3200wifi/hal.c index 9531b18cf72a..907ac890997c 100644 --- a/drivers/net/wireless/iwmc3200wifi/hal.c +++ b/drivers/net/wireless/iwmc3200wifi/hal.c | |||
@@ -54,7 +54,7 @@ | |||
54 | * LMAC. If you look at LMAC commands you'll se that they | 54 | * LMAC. If you look at LMAC commands you'll se that they |
55 | * are actually regular iwlwifi target commands encapsulated | 55 | * are actually regular iwlwifi target commands encapsulated |
56 | * into a special UMAC command called UMAC passthrough. | 56 | * into a special UMAC command called UMAC passthrough. |
57 | * This is due to the fact the the host talks exclusively | 57 | * This is due to the fact the host talks exclusively |
58 | * to the UMAC and so there needs to be a special UMAC | 58 | * to the UMAC and so there needs to be a special UMAC |
59 | * command for talking to the LMAC. | 59 | * command for talking to the LMAC. |
60 | * This is how a wifi command is layed out: | 60 | * This is how a wifi command is layed out: |
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index e1184deca559..c02fcedea9fa 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -321,14 +321,14 @@ iwm_rx_ticket_node_alloc(struct iwm_priv *iwm, struct iwm_rx_ticket *ticket) | |||
321 | return ERR_PTR(-ENOMEM); | 321 | return ERR_PTR(-ENOMEM); |
322 | } | 322 | } |
323 | 323 | ||
324 | ticket_node->ticket = kzalloc(sizeof(struct iwm_rx_ticket), GFP_KERNEL); | 324 | ticket_node->ticket = kmemdup(ticket, sizeof(struct iwm_rx_ticket), |
325 | GFP_KERNEL); | ||
325 | if (!ticket_node->ticket) { | 326 | if (!ticket_node->ticket) { |
326 | IWM_ERR(iwm, "Couldn't allocate RX ticket\n"); | 327 | IWM_ERR(iwm, "Couldn't allocate RX ticket\n"); |
327 | kfree(ticket_node); | 328 | kfree(ticket_node); |
328 | return ERR_PTR(-ENOMEM); | 329 | return ERR_PTR(-ENOMEM); |
329 | } | 330 | } |
330 | 331 | ||
331 | memcpy(ticket_node->ticket, ticket, sizeof(struct iwm_rx_ticket)); | ||
332 | INIT_LIST_HEAD(&ticket_node->node); | 332 | INIT_LIST_HEAD(&ticket_node->node); |
333 | 333 | ||
334 | return ticket_node; | 334 | return ticket_node; |