struct iovec uiovector;
int code;
+ memset(&uio_struct, 0, sizeof(uio_struct));
+ memset(&uiovector, 0, sizeof(uiovector));
+
AFS_STATCNT(gop_rdwr);
/* Set up the uio structure */
uiovector.iov_base = (caddr_t) base;
static int fclear_init = 0;
struct vcache *avc = VTOAFS(vp);
+ memset(&uio, 0, sizeof(uio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(afs_gn_fclear);
if (!fclear_init) {
memset(zero_buffer, 0, PAGESIZE);
struct iovec tvec[16]; /* Should have access to #define */
afs_int32 tsize;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&tvec, 0, sizeof(tvec));
+
mixed = 1;
finalOffset = xfrOffset + xfrSize;
tsize = (afs_size_t) (xfrOffset + xfrSize - afs_vmMappingEnd);
struct uio tuio;
struct iovec tvec[16]; /* Should have access to #define */
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&tvec, 0, sizeof(tvec));
+
/* Purge dirty chunks of file if there are too many dirty chunks.
* Inside the write loop, we only do this at a chunk boundary.
* Clean up partial chunk if necessary at end of loop.
int flags = ap->a_flags;
struct ucred *cred;
vm_offset_t ioaddr;
+ int code;
+ struct vcache *tvc = VTOAFS(vp);
+ int nocommit = flags & UPL_NOCOMMIT;
#ifdef AFS_DARWIN80_ENV
struct uio *uio;
#else
struct uio auio;
struct iovec aiov;
struct uio *uio = &auio;
+
+ memset(&auio, 0, sizeof(auio));
+ memset(&aiov, 0, sizeof(aiov));
#endif
- int nocommit = flags & UPL_NOCOMMIT;
- int code;
- struct vcache *tvc = VTOAFS(vp);
#ifndef AFS_DARWIN80_ENV
if (UBCINVALID(vp)) {
#if DIAGNOSTIC
int flags = ap->a_flags;
struct ucred *cred;
vm_offset_t ioaddr;
+ int nocommit = flags & UPL_NOCOMMIT;
+ int iosize;
+ int code;
+ struct vcache *tvc = VTOAFS(vp);
#ifdef AFS_DARWIN80_ENV
struct uio *uio;
#else
struct uio auio;
struct iovec aiov;
struct uio *uio = &auio;
+
+ memset(&auio, 0, sizeof(auio));
+ memset(&aiov, 0, sizeof(aiov));
#endif
- int nocommit = flags & UPL_NOCOMMIT;
- int iosize;
- int code;
- struct vcache *tvc = VTOAFS(vp);
#ifndef AFS_DARWIN80_ENV
if (UBCINVALID(vp)) {
#if DIAGNOSTIC
struct vnode *vp;
struct vcache *avc;
+ memset(&uio, 0, sizeof(uio));
+ memset(&iov, 0, sizeof(iov));
+
vp = ap->a_vp;
avc = VTOAFS(vp);
if ((object = vp->v_object) == NULL) {
struct vnode *vp;
struct vcache *avc;
+ memset(&uio, 0, sizeof(uio));
+ memset(&iov, 0, sizeof(iov));
+
vp = ap->a_vp;
avc = VTOAFS(vp);
/* Perhaps these two checks should just be KASSERTs instead... */
struct iovec iov;
struct uio uio;
+ memset(&uio, 0, sizeof(uio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(afs_bread);
fsbsize = vp->v_vfsp->vfs_bsize;
offset = lbn * fsbsize;
dir_off_t offset;
uint64_t tmp_offset;
+ memset(&auio, 0, sizeof(auio));
+ memset(&aiov, 0, sizeof(aiov));
+
count = uiop->uio_resid;
/* Allocate temporary space for format conversion */
ibuf = kmem_alloc(2 * count); /* overkill - fix later */
int count, outcount;
dir_off_t offset;
+ memset(&auio, 0, sizeof(auio));
+ memset(&aiov, 0, sizeof(aiov));
+
count = uiop->uio_resid;
/* Allocate temporary space for format conversion */
ibuf = kmem_alloc(2 * count); /* overkill - fix later */
extern caddr_t hdl_kmap_bp();
struct kthread *t = u.u_kthreadp;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&tiovec, 0, sizeof(tiovec));
+
AFS_STATCNT(afs_hp_strategy);
/*
* hdl_kmap_bp() saves "b_bcount" and restores it in hdl_remap_bp() after
struct iovec iov;
afs_int32 code;
+ memset(&auio, 0, sizeof(auio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(osi_Read);
/*
struct iovec iov;
afs_int32 code;
+ memset(&auio, 0, sizeof(auio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(osi_Write);
if (!afile) {
struct uio tuio;
struct iovec iov;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&iov, 0, sizeof(iov));
+
setup_uio(&tuio, &iov, target, (afs_offs_t) 0, maxlen, UIO_READ, seg);
code = afs_readlink(VTOAFS(ip), &tuio, credp);
crfree(credp);
struct iovec iovec;
int f_flags = 0;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&iovec, 0, sizeof(iovec));
+
buffer = kmap(pp) + offset;
base = page_offset(pp) + offset;
struct iovec iov;
afs_int32 code;
+ memset(&auio, 0, sizeof(auio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(osi_Read);
/*
struct iovec iov;
afs_int32 code;
+ memset(&auio, 0, sizeof(auio));
+ memset(&iov, 0, sizeof(iov));
+
AFS_STATCNT(osi_Write);
if (!afile) {
struct uio tuio;
struct iovec iov;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&iov, 0, sizeof(iov));
+
setup_uio(&tuio, &iov, target, (afs_offs_t) 0, maxlen, UIO_READ, seg);
code = afs_readlink(VTOAFS(ip), &tuio, credp);
crfree(credp);
struct iovec iovec;
int f_flags = 0;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&iovec, 0, sizeof(iovec));
+
buffer = kmap(pp) + offset;
base = (((loff_t) pp->index) << PAGE_CACHE_SHIFT) + offset;
struct uio tuio;
struct iovec iovec;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&iovec, 0, sizeof(iovec));
+
set_bit(PG_locked, &pp->flags);
credp = crref();
long len = abp->b_bcount;
int code;
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&tiovec, 0, sizeof(tiovec));
+
AFS_STATCNT(afs_strategy);
tuio.afsio_iov = tiovec;
afs_ucred_t *credp = u.u_cred;
#endif
+ memset(&tuio, 0, sizeof(tuio));
+ memset(&tiovec, 0, sizeof(tiovec));
+
AFS_STATCNT(afs_ustrategy);
#ifdef AFS_AIX41_ENV
/*
char *space;
struct uio *newuio;
struct iovec *newvec;
+ size_t space_len = sizeof(struct uio) +
+ sizeof(struct iovec) * AFS_MAXIOVCNT;
/* Allocate a block that can contain both the UIO and the iovec */
- space = osi_AllocSmallSpace(sizeof(struct uio) +
- sizeof(struct iovec) * AFS_MAXIOVCNT);
+ space = osi_AllocSmallSpace(space_len);
+ memset(space, 0, space_len);
newuio = (struct uio *) space;
newvec = (struct iovec *) (space + sizeof(struct uio));