summaryrefslogtreecommitdiffstats
path: root/kernel/notifier.c
diff options
context:
space:
mode:
authorYanchuan Nian <ycnian@gmail.com>2012-10-31 16:05:48 +0800
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-31 16:26:25 -0400
commit7175fe90153e6375082d65884fbb41ab3bbb4901 (patch)
tree487e9206cc31f1a214ee43771325193abb4a2b89 /kernel/notifier.c
parent8d96b10639fb402357b75b055b1e82a65ff95050 (diff)
downloadblackbird-op-linux-7175fe90153e6375082d65884fbb41ab3bbb4901.tar.gz
blackbird-op-linux-7175fe90153e6375082d65884fbb41ab3bbb4901.zip
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>
Diffstat (limited to 'kernel/notifier.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud