sock: only define socket limit if mem cgroup configured
authorstephen hemminger <stephen@networkplumber.org>
Fri, 22 Feb 2013 07:59:10 +0000 (07:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2013 20:10:19 +0000 (15:10 -0500)
commitcbda4eaffa2da9cefb89dd748803da689596d28b
tree7a95d936a0358dd60adf432af06a15e96cedd071
parent4cfb04854d053e4d6391d7f84495f48082342362
sock: only define socket limit if mem cgroup configured

The mem cgroup socket limit is only used if the config option is
enabled. Found with sparse

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c