rc80211-pid: fix last_sample initialization
authorStefano Brivio <stefano.brivio@polimi.it>
Wed, 16 Jan 2008 23:38:29 +0000 (00:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:43 +0000 (15:10 -0800)
commitc09c7237eadc65916305835ca1e3ee8a03f01159
tree03aee8909af07d4f5566957e1a402dfd3242d543
parentf99b751fca5b16bea53c0d6724935e1949350052
rc80211-pid: fix last_sample initialization

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@bu3sch.de>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_pid_algo.c