diff options
Diffstat (limited to 'drivers/net/wireless/b43/phy_n.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 5a725703770c..e288c559481d 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -1182,7 +1182,7 @@ static u16 b43_nphy_gen_load_samples(struct b43_wldev *dev, u32 freq, u16 max, | |||
1182 | len = bw << 1; | 1182 | len = bw << 1; |
1183 | } | 1183 | } |
1184 | 1184 | ||
1185 | samples = kzalloc(len * sizeof(struct b43_c32), GFP_KERNEL); | 1185 | samples = kcalloc(len, sizeof(struct b43_c32), GFP_KERNEL); |
1186 | if (!samples) { | 1186 | if (!samples) { |
1187 | b43err(dev->wl, "allocation for samples generation failed\n"); | 1187 | b43err(dev->wl, "allocation for samples generation failed\n"); |
1188 | return 0; | 1188 | return 0; |