From: Eric W. Biederman Date: Wed, 15 Jun 2011 19:47:04 +0000 (-0700) Subject: proc: Fix Oops on stat of /proc//ns/net X-Git-Tag: v3.0-rc4~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=793925334f32e9026c22baee5c3c340f47d4ef7e;p=pandora-kernel.git proc: Fix Oops on stat of /proc//ns/net Don't call iput with the inode half setup to be a namespace filedescriptor. Instead rearrange the code so that we don't initialize ei->ns_ops until after I ns_ops->get succeeds, preventing us from invoking ns_ops->put when ns_ops->get failed. Reported-by: Ingo Saitz Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed