Search Linux Wireless

Re: [PATCH 2/5] b43: N-PHY: load generated samples

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

 



On Thu, 2010-02-04 at 12:23 +0100, Rafał Miłecki wrote:

> +	u32 *data;
> +
> +	data = kzalloc(len * sizeof(u32), GFP_KERNEL);
> +
> +	if (nphy->hang_avoid)
> +		b43_nphy_stay_in_carrier_search(dev, 1);
> +
> +	for (i = 0; i < len; i++) {
> +		data[i] = (samples[i].i & 0x3FF << 10);

Humm. Allocations can fail, you know :)

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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