Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351725
b: refs/heads/master
c: 82f2085
h: refs/heads/master
i:
  351723: 34158d4
v: v3
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent 824647c commit 1bdae45
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 8a57fff0c178febbe28669a0ef68a8e3460a7589
refs/heads/master: 82f20856304319d5a931846e0269eb911d52a905
7 changes: 4 additions & 3 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ static int reg_copy_regd(const struct ieee80211_regdomain **dst_regd,
int size_of_regd = 0;
unsigned int i;

size_of_regd = sizeof(struct ieee80211_regdomain) +
((src_regd->n_reg_rules + 1) * sizeof(struct ieee80211_reg_rule));
size_of_regd =
sizeof(struct ieee80211_regdomain) +
src_regd->n_reg_rules * sizeof(struct ieee80211_reg_rule);

regd = kzalloc(size_of_regd, GFP_KERNEL);
if (!regd)
Expand Down Expand Up @@ -641,7 +642,7 @@ static struct ieee80211_regdomain *regdom_intersect(
return NULL;

size_of_regd = sizeof(struct ieee80211_regdomain) +
((num_rules + 1) * sizeof(struct ieee80211_reg_rule));
num_rules * sizeof(struct ieee80211_reg_rule);

rd = kzalloc(size_of_regd, GFP_KERNEL);
if (!rd)
Expand Down

0 comments on commit 1bdae45

Please sign in to comment.