Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300835
b: refs/heads/master
c: 8437754
h: refs/heads/master
i:
  300833: 1d535c6
  300831: 939ce48
v: v3
  • Loading branch information
Vivek Natarajan authored and Kalle Valo committed Apr 3, 2012
1 parent ce54263 commit db26942
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f599359cb97425b034b41e8d4a1a86eaa151972c
refs/heads/master: 8437754c83351d6213c1a47ff029c1126d6042a7
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/export.h>
#include <linux/vmalloc.h>

#include "debug.h"
#include "hif-ops.h"
Expand Down Expand Up @@ -305,7 +306,7 @@ void ath6kl_core_cleanup(struct ath6kl *ar)

kfree(ar->fw_board);
kfree(ar->fw_otp);
kfree(ar->fw);
vfree(ar->fw);
kfree(ar->fw_patch);
kfree(ar->fw_testscript);

Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/export.h>
#include <linux/of.h>
#include <linux/mmc/sdio_func.h>
#include <linux/vmalloc.h>

#include "core.h"
#include "cfg80211.h"
Expand Down Expand Up @@ -928,13 +929,14 @@ static int ath6kl_fetch_fw_apin(struct ath6kl *ar, const char *name)
if (ar->fw != NULL)
break;

ar->fw = kmemdup(data, ie_len, GFP_KERNEL);
ar->fw = vmalloc(ie_len);

if (ar->fw == NULL) {
ret = -ENOMEM;
goto out;
}

memcpy(ar->fw, data, ie_len);
ar->fw_len = ie_len;
break;
case ATH6KL_FW_IE_PATCH_IMAGE:
Expand Down

0 comments on commit db26942

Please sign in to comment.