summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTom Haynes <thomas.haynes@primarydata.com>2015-02-09 17:48:32 -0800
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-02-09 22:34:29 -0500
commit480486b4733d5bc7d9fe765b34bc6c2b72d5c12e (patch)
tree208eb0b9d905ee7fcd287788dba1d0831bd9ccf9 /fs
parent402e23b4ed9ed81852b6c15b793fcf84ea91e491 (diff)
downloadlinux-stable-480486b4733d5bc7d9fe765b34bc6c2b72d5c12e.tar.gz
linux-stable-480486b4733d5bc7d9fe765b34bc6c2b72d5c12e.tar.bz2
linux-stable-480486b4733d5bc7d9fe765b34bc6c2b72d5c12e.zip
pnfs/flexfiles: Do not dprintk after the free
Found by 0-DAY kernel test infrastructure: fs/nfs/flexfilelayout/flexfilelayoutdev.c:520:13-16: ERROR: reference preceded by free on line 518 fs/nfs/flexfilelayout/flexfilelayoutdev.c:520:26-29: ERROR: reference preceded by free on line 518 fs/nfs/flexfilelayout/flexfilelayoutdev.c:520:39-42: ERROR: reference preceded by free on line 518 fs/nfs/flexfilelayout/flexfilelayoutdev.c:521:3-6: ERROR: reference preceded by free on line 518 Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Tom Haynes <loghyr@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/flexfilelayout/flexfilelayoutdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
index 3bbb16b3066f..e2c01f204a95 100644
--- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c
+++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
@@ -515,10 +515,10 @@ int ff_layout_encode_ds_ioerr(struct nfs4_flexfile_layout *flo,
*p++ = cpu_to_be32(err->opnum);
*count += 1;
list_del(&err->list);
- kfree(err);
dprintk("%s: offset %llu length %llu status %d op %d count %d\n",
__func__, err->offset, err->length, err->status,
err->opnum, *count);
+ kfree(err);
}
return 0;