From: Cong Wang Date: Thu, 31 May 2012 23:26:17 +0000 (-0700) Subject: proc: clean up /proc//environ handling X-Git-Tag: v3.5-rc1~21^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b409e578d9a4ec95913e06d8fea2a33f1754ea69;p=pandora-kernel.git proc: clean up /proc//environ handling Similar to e268337dfe26 ("proc: clean up and fix /proc//mem handling"), move the check of permission to open(), this will simplify read() code. [akpm@linux-foundation.org: checkpatch fixes] Signed-off-by: Cong Wang Cc: Oleg Nesterov Cc: Alexey Dobriyan Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed