@@ -78,8 +78,7 @@ static __be32 *read_buf(struct xdr_stream *xdr, int nbytes)
7878
7979 p = xdr_inline_decode (xdr , nbytes );
8080 if (unlikely (p == NULL ))
81- printk (KERN_WARNING "NFS: NFSv4 callback reply buffer overflowed "
82- "or truncated request.\n" );
81+ printk (KERN_WARNING "NFS: NFSv4 callback reply buffer overflowed!\n" );
8382 return p ;
8483}
8584
@@ -890,7 +889,6 @@ static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *r
890889 struct cb_compound_hdr_arg hdr_arg = { 0 };
891890 struct cb_compound_hdr_res hdr_res = { NULL };
892891 struct xdr_stream xdr_in , xdr_out ;
893- struct xdr_buf * rq_arg = & rqstp -> rq_arg ;
894892 __be32 * p , status ;
895893 struct cb_process_state cps = {
896894 .drc_status = 0 ,
@@ -902,8 +900,7 @@ static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *r
902900
903901 dprintk ("%s: start\n" , __func__ );
904902
905- rq_arg -> len = rq_arg -> head [0 ].iov_len + rq_arg -> page_len ;
906- xdr_init_decode (& xdr_in , rq_arg , rq_arg -> head [0 ].iov_base );
903+ xdr_init_decode (& xdr_in , & rqstp -> rq_arg , rqstp -> rq_arg .head [0 ].iov_base );
907904
908905 p = (__be32 * )((char * )rqstp -> rq_res .head [0 ].iov_base + rqstp -> rq_res .head [0 ].iov_len );
909906 xdr_init_encode (& xdr_out , & rqstp -> rq_res , p );
0 commit comments