Search Linux Wireless

Re: rc80211-pid: fix last_sample initialization

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

 



On Thu, 2008-01-17 at 00:38 +0100, Stefano Brivio wrote:
> Fix last_sample initialization. kzalloc'ing the per-STA data wasn't enough,
> as jiffies can assume negative values as well. This fixes a bug which
> prevented correct PID operation for a while after booting.
> 
> Thanks to Michael Buesch for reporting this.
> 
> Reported-and-tested-by: Michael Buesch <mb@xxxxxxxxx>
> Signed-off-by: Stefano Brivio <stefano.brivio@xxxxxxxxx>

Ack.

> ---
> Index: wireless-2.6/net/mac80211/rc80211_pid_algo.c
> ===================================================================
> --- wireless-2.6.orig/net/mac80211/rc80211_pid_algo.c
> +++ wireless-2.6/net/mac80211/rc80211_pid_algo.c
> @@ -496,6 +496,8 @@ static void *rate_control_pid_alloc_sta(
>  	if (spinfo == NULL)
>  		return NULL;
>  
> +	spinfo->last_sample = jiffies;
> +
>  #ifdef CONFIG_MAC80211_DEBUGFS
>  	spin_lock_init(&spinfo->events.lock);
>  	init_waitqueue_head(&spinfo->events.waitqueue);
> 
> 

-
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