From df3e4145e758de3530a21bb1e75cd48a4a7f61ec Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 7 Oct 2011 08:11:34 -0400 Subject: [PATCH] bypasscache: free in order we need to free this, but while the pointer is still good Change-Id: I5afa3505b764c5bf72811f60f63e29c80a29c5af Reviewed-on: http://gerrit.openafs.org/5562 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_bypasscache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c index b1ef5d9dfd..b887289303 100644 --- a/src/afs/afs_bypasscache.c +++ b/src/afs/afs_bypasscache.c @@ -661,8 +661,8 @@ done: osi_Free(bparms, sizeof(struct nocache_read_request)); #ifndef UKERNEL /* in UKERNEL, the "pages" are passed in */ - osi_Free(auio, sizeof(struct uio)); osi_Free(iovecp, auio->uio_iovcnt * sizeof(struct iovec)); + osi_Free(auio, sizeof(struct uio)); #endif return code; }