From: J. Bruce Fields Date: Mon, 7 Mar 2011 00:11:03 +0000 (-0500) Subject: nfsd4: fix bad pointer on failure to find delegation X-Git-Tag: v2.6.38~33^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b007b4e19b50ff4d27ea8b69cd6d744cfec86b;p=pandora-kernel.git nfsd4: fix bad pointer on failure to find delegation In case of a nonempty list, the return on error here is obviously bogus; it ends up being a pointer to the list head instead of to any valid delegation on the list. In particular, if nfsd4_delegreturn() hits this case, and you're quite unlucky, then renew_client may oops, and it may take an embarassingly long time to figure out why. Facepalm. BUG: unable to handle kernel NULL pointer dereference at 0000000000000090 IP: [] nfsd4_delegreturn+0x125/0x200 ... Cc: stable@kernel.org Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed