From: Gu Zheng Date: Mon, 10 Mar 2014 01:57:34 +0000 (+0800) Subject: net: add a pre-check of net_ns in sk_change_net() X-Git-Tag: v3.15-rc1~113^2~190 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5812521be0f79583a26e203ac5f23de679cbdd94;p=pandora-kernel.git net: add a pre-check of net_ns in sk_change_net() We do not need to switch the net_ns if the target net_ns the same as the current one, so here we add a pre-check of net_ns to avoid this as David suggested. Signed-off-by: Gu Zheng Signed-off-by: David S. Miller --- Reading git-diff-tree failed