X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=Documentation%2FRCU%2Frcu_dereference.txt;h=c0bf2441a2baf5f254ed64d6e4c117dda808fd2c;hb=74e98eb085889b0d2d4908f59f6e00026063014f;hp=1e6c0da994f544b6fc3acaa786d4f4f932551db6;hpb=1ddc6dd855f01977e9e1795037fca1c8be028d24;p=karo-tx-linux.git diff --git a/Documentation/RCU/rcu_dereference.txt b/Documentation/RCU/rcu_dereference.txt index 1e6c0da994f5..c0bf2441a2ba 100644 --- a/Documentation/RCU/rcu_dereference.txt +++ b/Documentation/RCU/rcu_dereference.txt @@ -28,7 +28,7 @@ o You must use one of the rcu_dereference() family of primitives o Avoid cancellation when using the "+" and "-" infix arithmetic operators. For example, for a given variable "x", avoid "(x-x)". There are similar arithmetic pitfalls from other - arithmetic operatiors, such as "(x*0)", "(x/(x+1))" or "(x%1)". + arithmetic operators, such as "(x*0)", "(x/(x+1))" or "(x%1)". The compiler is within its rights to substitute zero for all of these expressions, so that subsequent accesses no longer depend on the rcu_dereference(), again possibly resulting in bugs due