]> git.baikalelectronics.ru Git - kernel.git/commit
net: Dereference pointer-value of sk_prot->memory_pressure
authorChristoph Paasch <christoph.paasch@uclouvain.be>
Wed, 23 Oct 2013 19:49:21 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Oct 2013 20:15:01 +0000 (16:15 -0400)
commit2f8207aab14e1ef54c1a7fbd7011b5fd56b6f2c9
tree090adfa9dbe37c9cd8b825c647d7a1a1f916c12a
parente10232d793e99166da5bc3f31f74960e570e1e77
net: Dereference pointer-value of sk_prot->memory_pressure

ee5b4e34a7 (tcp_memcontrol: Kill struct tcp_memcontrol) falsly modified
the access to memory_pressure of sk->sk_prot->memory_pressure. The patch
did modify the memory_pressure-field of struct cg_proto, but not the one
of struct proto.

So, the access to sk_prot->memory_pressure should not be changed.

Acked-by: Eric Dumazet <edumazet@google.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h