From: Linus Torvalds Date: Mon, 18 Apr 2011 17:36:54 +0000 (-0700) Subject: proc: do proper range check on readdir offset X-Git-Tag: v2.6.39-rc4~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8bdc59f215e62098bc5b4256fd9928bf27053a1;p=pandora-kernel.git proc: do proper range check on readdir offset Rather than pass in some random truncated offset to the pid-related functions, check that the offset is in range up-front. This is just cleanup, the previous commit fixed the real problem. Cc: stable@kernel.org Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed