X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fnfs%2Fnfs4filelayout.c;h=b039f7f26d95c00b9c28bc908ab5976338c1157a;hb=709d22822886bfb105a1c498c14ab6647d0f1284;hp=22d10623f5ee3b591de10631044cf90cef4d353a;hpb=4c0eec03b188efafba3a35315b59a9efbf9684fc;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 22d10623f5ee..b039f7f26d95 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c @@ -1300,7 +1300,7 @@ filelayout_alloc_layout_hdr(struct inode *inode, gfp_t gfp_flags) struct nfs4_filelayout *flo; flo = kzalloc(sizeof(*flo), gfp_flags); - return &flo->generic_hdr; + return flo != NULL ? &flo->generic_hdr : NULL; } static void