diff --git a/[refs] b/[refs] index 4cac647d0fdb..1a70429504b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 14fcc23fdc78e9d32372553ccf21758a9bd56fa1 +refs/heads/master: 4d9c377c81d37740b25cacf025f95c084eafabbb diff --git a/trunk/lib/ratelimit.c b/trunk/lib/ratelimit.c index 35136671b215..26187edcc7ea 100644 --- a/trunk/lib/ratelimit.c +++ b/trunk/lib/ratelimit.c @@ -15,7 +15,6 @@ #include static DEFINE_SPINLOCK(ratelimit_lock); -static unsigned long flags; /* * __ratelimit - rate limiting @@ -26,6 +25,8 @@ static unsigned long flags; */ int __ratelimit(struct ratelimit_state *rs) { + unsigned long flags; + if (!rs->interval) return 1;