commit | 662f9a105b4322b8559d448f86110e6ec24b8738 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat May 20 00:31:12 2017 +0300 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Wed May 24 07:52:54 2017 -0400 |
tree | 2358ff5c962e91ec5c1d4bcf55e6b4d172351987 | |
parent | 6d3b5d8d8dd1c14f991ccab84b40f8425f1ae91b [diff] |
pNFS/flexfiles: missing error code in ff_layout_alloc_lseg() If xdr_inline_decode() fails then we end up returning ERR_PTR(0). The caller treats NULL returns as -ENOMEM so it doesn't really hurt runtime, but obviously we intended to set an error code here. Fixes: d67ae825a59d ("pnfs/flexfiles: Add the FlexFile Layout Driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>