From: Yanchuan Nian Date: Wed, 31 Oct 2012 08:05:48 +0000 (+0800) Subject: nfs: Check whether a layout pointer is NULL before free it X-Git-Tag: v3.7-rc4~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7175fe90153e6375082d65884fbb41ab3bbb4901;p=pandora-kernel.git nfs: Check whether a layout pointer is NULL before free it The new layout pointer in pnfs_find_alloc_layout() may be NULL because of out of memory. we must do some check work, otherwise pnfs_free_layout_hdr() will go wrong because it can not deal with a NULL pointer. Signed-off-by: Yanchuan Nian Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed