Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202744
b: refs/heads/master
c: 80caf60
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and John W. Linville committed Jun 2, 2010
1 parent b3e8f62 commit b27de20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 731a9b2a024714a3fa070b014744d02b9a96b3b6
refs/heads/master: 80caf6017ace944035210ca2bba7abeb85eb0c5c
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,14 @@ static int wl1251_fetch_nvs(struct wl1251 *wl)
}

wl->nvs_len = fw->size;
wl->nvs = kmalloc(wl->nvs_len, GFP_KERNEL);
wl->nvs = kmemdup(fw->data, wl->nvs_len, GFP_KERNEL);

if (!wl->nvs) {
wl1251_error("could not allocate memory for the nvs file");
ret = -ENOMEM;
goto out;
}

memcpy(wl->nvs, fw->data, wl->nvs_len);

ret = 0;

out:
Expand Down

0 comments on commit b27de20

Please sign in to comment.