From: ycnian@gmail.com Date: Mon, 11 Mar 2013 00:46:14 +0000 (+0800) Subject: nfsd: fix bug on nfs4 stateid deallocation X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~48^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491402a7876e91aa491c33f70ed4e86e59f06c8b;p=pandora-kernel.git nfsd: fix bug on nfs4 stateid deallocation NFS4_OO_PURGE_CLOSE is not handled properly. To avoid memory leak, nfs4 stateid which is pointed by oo_last_closed_stid is freed in nfsd4_close(), but NFS4_OO_PURGE_CLOSE isn't cleared meanwhile. So the stateid released in THIS close procedure may be freed immediately in the coming encoding function. Sorry that Signed-off-by was forgotten in last version. Signed-off-by: Yanchuan Nian Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed