Re: [PATCH] Net: ceph: messenger: Use local variable cursor in read_partial_msg_data()

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

 



On Sun, Oct 18, 2015 at 12:00 PM, Shraddha Barke
<shraddha.6596@xxxxxxxxx> wrote:
> Use local variable cursor in place of &msg->cursor in
>  read_partial_msg_data()
>
> Signed-off-by: Shraddha Barke <shraddha.6596@xxxxxxxxx>
> ---
>  net/ceph/messenger.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
> index b9b0e3b..b3d1973 100644
> --- a/net/ceph/messenger.c
> +++ b/net/ceph/messenger.c
> @@ -2231,7 +2231,7 @@ static int read_partial_message_section(struct ceph_connection *con,
>  static int read_partial_msg_data(struct ceph_connection *con)
>  {
>         struct ceph_msg *msg = con->in_msg;
> -       struct ceph_msg_data_cursor *cursor = &msg->cursor;
> +       struct ceph_msg_data_cursor *cursor = cursor;
                                      ^^^^^^^^^^^^^^^^
This is not going to work...

Thanks,

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



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux