From: Jeff Layton Date: Fri, 4 May 2012 15:44:12 +0000 (-0400) Subject: sunrpc: do array overrun check in svc_recv before allocating pages X-Git-Tag: v3.5-rc1~18^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c427ac3a61ccabae0fdef53563edf40394b6c9;p=pandora-kernel.git sunrpc: do array overrun check in svc_recv before allocating pages There's little point in waiting until after we allocate all of the pages to see if we're going to overrun the array. In the event that this calculation is really off we could end up scribbling over a bunch of memory and make it tougher to debug. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed