On 07/18/2012 12:22 PM, Idan Kedar wrote: > if the length is __be32, at least sizeof(__be32) bytes have to be > decoded. this is just semantics since __xdr_inline_decode rounds nbytes > up by calling XDR_QUADLEN(nbytes), but the code is still better off > fixed. > ACK-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx> > Signed-off-by: Idan Kedar <idank@xxxxxxxxxx> This is for Trond for the 3.6 merge window. > --- > fs/nfs/objlayout/pnfs_osd_xdr_cli.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/nfs/objlayout/pnfs_osd_xdr_cli.c b/fs/nfs/objlayout/pnfs_osd_xdr_cli.c > index b3918f7..3845ece 100644 > --- a/fs/nfs/objlayout/pnfs_osd_xdr_cli.c > +++ b/fs/nfs/objlayout/pnfs_osd_xdr_cli.c > @@ -73,7 +73,7 @@ static int > _osd_xdr_decode_opaque_cred(struct pnfs_osd_opaque_cred *opaque_cred, > struct xdr_stream *xdr) > { > - __be32 *p = xdr_inline_decode(xdr, 1); > + __be32 *p = xdr_inline_decode(xdr, sizeof(__be32)); > > if (!p) > return -EINVAL; -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html