Since commit
76ad941902c650a4a716168d3cbe68f62aef109f we use afs_DestroyReq()
instead of osi_Free() directly.
Also update the UKERNEL version of the function to afs_CreateReq() properly.
FIXES 134533
Change-Id: I4a13f6232dbed12ee00ce219cb5f515529fff58c
Reviewed-on: https://gerrit.openafs.org/13060
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
/* these get freed in PrefetchNoCache, so... */
bparms = afs_osi_Alloc(sizeof(struct nocache_read_request));
- bparms->areq = afs_osi_Alloc(sizeof(struct vrequest));
- code = afs_InitReq(bparms->areq, get_user_struct()->u_cred);
+ code = afs_CreateReq(&bparms->areq, get_user_struct()->u_cred);
if (code) {
- afs_osi_Free(bparms->areq, sizeof(struct vrequest));
+ afs_DestroyReq(bparms->areq);
afs_osi_Free(bparms, sizeof(struct nocache_read_request));
errno = code;
return -1;
if (!code)
afs_ProcessFS(avc, &tcallspec->OutStatus, areq);
- osi_Free(areq, sizeof(struct vrequest));
+ afs_DestroyReq(areq);
osi_Free(tcallspec, sizeof(struct tlocal1));
osi_Free(bparms, sizeof(struct nocache_read_request));
#ifndef UKERNEL