From: Glauber Costa Date: Thu, 5 Jan 2012 20:16:39 +0000 (+0000) Subject: net: fix sock_clone reference mismatch with tcp memcontrol X-Git-Tag: v3.3-rc1~134^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f511e1ce6f1a6f0a5bb8320e9f802e76f6b999;p=pandora-kernel.git net: fix sock_clone reference mismatch with tcp memcontrol Sockets can also be created through sock_clone. Because it copies all data in the sock structure, it also copies the memcg-related pointer, and all should be fine. However, since we now use reference counts in socket creation, we are left with some sockets that have no reference counts. It matters when we destroy them, since it leads to a mismatch. Signed-off-by: Glauber Costa CC: David S. Miller CC: Greg Thelen CC: Hiroyouki Kamezawa CC: Laurent Chavey Signed-off-by: David S. Miller --- Reading git-diff-tree failed