[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221122204644.7bfd48d1@kernel.org>
Date: Tue, 22 Nov 2022 20:46:44 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: m.chetan.kumar@...ux.intel.com
Cc: netdev@...r.kernel.org, davem@...emloft.net,
johannes@...solutions.net, ryazanov.s.a@...il.com,
loic.poulain@...aro.org, linuxwwan@...el.com, edumazet@...gle.com,
pabeni@...hat.com
Subject: Re: [PATCH net 4/4] net: wwan: iosm: fix incorrect skb length
On Tue, 22 Nov 2022 23:17:46 +0530 m.chetan.kumar@...ux.intel.com wrote:
> From: M Chetan Kumar <m.chetan.kumar@...ux.intel.com>
>
> skb passed to network layer contains incorrect length.
>
> In mux aggregation protocol, the datagram block received
> from device contains block signature, packet & datagram
> header. The right skb len to be calculated by subracting
> datagram pad len from datagram length.
>
> Whereas in mux lite protocol, the skb contains single
> datagram so skb len is calculated by subtracting the
> packet offset from datagram header.
Sparse says:
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c:478:38: warning: restricted __le16 degrades to integer
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c:571:52: warning: restricted __le16 degrades to integer
Powered by blists - more mailing lists