Search Linux Wireless

Re: [PATCH 2/4] ath9k: Combine legacy and 11n rc statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 27, 2009 at 10:35:13AM +0530, Jeff Hansen wrote:
> +       max = 80 + sc->cur_rate_table->rate_cnt * 64;
> +       buf = vmalloc(max + 1);

I think kmalloc() is the better option here, you are not even
allocating a page, you are allocating 2952B at max.

Vasanth

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux