Re: [PATCH] CIFS: Fix wrong length in cifs_iovec_read

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

 



merged

On Wed, Jul 20, 2011 at 9:24 AM, Pavel Shilovsky <piastryyy@xxxxxxxxx> wrote:
> Signed-off-by: Pavel Shilovsky <piastryyy@xxxxxxxxx>
> ---
>  fs/cifs/file.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/cifs/file.c b/fs/cifs/file.c
> index bb71471..a9b4a24 100644
> --- a/fs/cifs/file.c
> +++ b/fs/cifs/file.c
> @@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov,
>                        io_parms.pid = pid;
>                        io_parms.tcon = pTcon;
>                        io_parms.offset = *poffset;
> -                       io_parms.length = len;
> +                       io_parms.length = cur_len;
>                        rc = CIFSSMBRead(xid, &io_parms, &bytes_read,
>                                         &read_data, &buf_type);
>                        pSMBr = (struct smb_com_read_rsp *)read_data;
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Thanks,

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


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux