On Saturday 28 October 2006 00:01, Jesper Juhl wrote: > > > 3) There are two locations in the function where we may return before > > > we use the value of the variable 'w', but we compute it at the very top > > > of the function. So in the case where we return early we have wasted a > > > few cycles computing a value that was never used. Computing w later in the function is fine. > > w should be an unsigned int. > > Makes sense. No, this breaks the while loop further below: with an unsigned int, the loop counter underflows and wraps. Please fix this identically in fs/nfsd/nfs2acl.c and fs/nfsd/nfs3acl.c. Thanks, Andreas - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- From: David Rientjes <[email protected]>
- Small optimization for nfs3acl. (was: Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.)
- From: Jesper Juhl <[email protected]>
- Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- From: "Jesper Juhl" <[email protected]>
- Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- References:
- [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- From: Jesper Juhl <[email protected]>
- Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- From: David Rientjes <[email protected]>
- Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- From: Jesper Juhl <[email protected]>
- [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- Prev by Date: Re: IPSEC and bridged interfaces
- Next by Date: Re: mmaping a kernel buffer to user space
- Previous by thread: Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- Next by thread: Re: [PATCH] NFS: nfsaclsvc_encode_getaclres() - Fix potential NULL deref and tiny optimization.
- Index(es):