[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADvbK_ePXHxu71MZPrHRsDqS0yKtwUv4OGy3u0-caq4UHjBOcA@mail.gmail.com>
Date: Mon, 30 Oct 2017 23:17:39 +0800
From: Xin Long <lucien.xin@...il.com>
To: David Laight <David.Laight@...lab.com>
Cc: network dev <netdev@...r.kernel.org>,
"linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Neil Horman <nhorman@...driver.com>,
Vlad Yasevich <vyasevich@...il.com>
Subject: Re: [PATCH net 4/4] sctp: fix some type cast warnings introduced
since very beginning
On Mon, Oct 30, 2017 at 7:12 PM, David Laight <David.Laight@...lab.com> wrote:
> From: Xin Long
>> Sent: 28 October 2017 12:44
>> These warnings were found by running 'make C=2 M=net/sctp/'.
>> They are there since very beginning.
> ...
>> - param.crr_id = i;
>> + param.crr_id = htonl(i);
> ...
>
> Isn't this a bug fix, not just removing a warning??
It's actually fiine,
crr_id is just an identifier, and receiver will only pack the same value to the
asconf_ack chunk, and then sender checks with:
if (asconf_ack_param->crr_id == asconf_param->crr_id)
...
So no issue could be caused by this, I didn't count it as a bug.
Powered by blists - more mailing lists