Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278601
b: refs/heads/master
c: 839fafb
h: refs/heads/master
i:
  278599: 1cbbee1
v: v3
  • Loading branch information
Thomas Meyer authored and John W. Linville committed Dec 6, 2011
1 parent b685bfe commit d886f29
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5f779bbd472cdb2046ff8b672ad8c5b62b61cd19
refs/heads/master: 839fafbe0dc35fabeb9bd3be9727fd74d12c0b9d
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,11 @@ static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev,
if (spec->supported_rates & SUPPORT_RATE_OFDM)
num_rates += 8;

channels = kzalloc(sizeof(*channels) * spec->num_channels, GFP_KERNEL);
channels = kcalloc(spec->num_channels, sizeof(*channels), GFP_KERNEL);
if (!channels)
return -ENOMEM;

rates = kzalloc(sizeof(*rates) * num_rates, GFP_KERNEL);
rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL);
if (!rates)
goto exit_free_channels;

Expand Down

0 comments on commit d886f29

Please sign in to comment.