]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a use-before-initialised warning in fs/nfs/write.c and fs/nfs/pnfs.c
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 18:31:47 +0000 (14:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 19:03:51 +0000 (15:03 -0400)
commit75a2a5fa92e0a73c6faf3217e4fd232e05a55fd8
tree02d031861e7fa008d02bb74f46f480aed521f445
parente3f340dfccd2eac016fcfb06486fc18bad19851d
NFS: Fix a use-before-initialised warning in fs/nfs/write.c and fs/nfs/pnfs.c

If the allocation of nfs_write_header fails, the list of nfs_pages that
needs to be cleaned up is still on desc->pg_list...

Reported-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Fred Isaman <iisaman@netapp.com>
fs/nfs/pnfs.c
fs/nfs/write.c