diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-12-12 14:19:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-12 14:19:43 -0500 |
commit | f2abba4921b945a6f8aca36fcba634c22797ba78 (patch) | |
tree | 77b06167aba97c7400759547fffdb38805ff6bd6 /drivers/net/wireless/rt2x00/rt2x00dev.c | |
parent | dfd56b8b38fff3586f36232db58e1e9f7885a605 (diff) | |
parent | b6a27d1e6b8e163dee054c9cd03639c62756c2e2 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index edd317fa7c0..c3e1aa7c1a8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -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; |