Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ratelimit: Fix data-races in ___ratelimit().
While reading rs->interval and rs->burst, they can be changed concurrently via sysctl (e.g. net_ratelimit_state). Thus, we need to add READ_ONCE() to their readers. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information