diff options
author | Tom Haynes <thomas.haynes@primarydata.com> | 2015-02-09 20:48:32 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-09 22:34:29 -0500 |
commit | 480486b4733d5bc7d9fe765b34bc6c2b72d5c12e (patch) | |
tree | 208eb0b9d905ee7fcd287788dba1d0831bd9ccf9 /fs/nfs | |
parent | 402e23b4ed9ed81852b6c15b793fcf84ea91e491 (diff) |
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/nfs')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 2 |
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, | |||
515 | *p++ = cpu_to_be32(err->opnum); | 515 | *p++ = cpu_to_be32(err->opnum); |
516 | *count += 1; | 516 | *count += 1; |
517 | list_del(&err->list); | 517 | list_del(&err->list); |
518 | kfree(err); | ||
519 | dprintk("%s: offset %llu length %llu status %d op %d count %d\n", | 518 | dprintk("%s: offset %llu length %llu status %d op %d count %d\n", |
520 | __func__, err->offset, err->length, err->status, | 519 | __func__, err->offset, err->length, err->status, |
521 | err->opnum, *count); | 520 | err->opnum, *count); |
521 | kfree(err); | ||
522 | } | 522 | } |
523 | 523 | ||
524 | return 0; | 524 | return 0; |