From: J. Bruce Fields Date: Sat, 1 May 2010 16:56:06 +0000 (-0400) Subject: nfsd4: fix bare destroy_session null dereference X-Git-Tag: v2.6.35-rc1~489^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4cec2f2fdbb3d830fa014226d0d965df548bad;p=pandora-kernel.git nfsd4: fix bare destroy_session null dereference It's legal to send a DESTROY_SESSION outside any session (as the only operation in a compound), in which case cstate->session will be NULL; check for that case. While we're at it, move these checks into a separate helper function. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed