Yanchuan Nian 7175fe9015 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 <ycnian@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2012-10-31 16:26:25 -04:00
..
2012-07-30 19:06:52 -04:00
2012-10-10 23:52:35 +09:00
2012-10-02 08:17:04 -07:00
2012-10-10 23:52:35 +09:00
2012-07-30 19:06:52 -04:00
2012-10-02 08:17:02 -07:00
2012-07-30 19:06:41 -04:00
2012-07-30 19:06:46 -04:00
2012-07-30 19:06:52 -04:00
2012-10-10 23:52:35 +09:00