Re: [PATCH 2/3] [net/9p] Fix the msize calculation.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 30 Jun 2011 16:18:40 -0700, "Venkateswararao Jujjuri (JV)" <jvrao@xxxxxxxxxxxxxxxxxx> wrote:
> msize represents the maximum PDU size that includes P9_IOHDRSZ.
> 
> Signed-off-by: Venkateswararao Jujjuri "<jvrao@xxxxxxxxxxxxxxxxxx>
> ---
>  net/9p/client.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/9p/client.c b/net/9p/client.c
> index 9e3b0e6..1b89351 100644
> --- a/net/9p/client.c
> +++ b/net/9p/client.c
> @@ -821,8 +821,8 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
>  	if (err)
>  		goto destroy_fidpool;
> 
> -	if ((clnt->msize+P9_IOHDRSZ) > clnt->trans_mod->maxsize)
> -		clnt->msize = clnt->trans_mod->maxsize-P9_IOHDRSZ;
> +	if (clnt->msize > clnt->trans_mod->maxsize)
> +		clnt->msize = clnt->trans_mod->maxsize;
> 
>  	err = p9_client_version(clnt);
>  	if (err)

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx>

-aneesh
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux