mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
net: wwan: iosm: fix kernel test robot reported error
[ Upstream commit985a02e758
] sparse warnings - iosm_ipc_mux_codec.c:1474 using plain integer as NULL pointer. Use skb_trim() to reset skb tail & len. Fixes:9413491e20
("net: iosm: encode or decode datagram") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
80e82f7b44
commit
c439cfadfc
1 changed files with 1 additions and 2 deletions
|
@ -1471,8 +1471,7 @@ void ipc_mux_ul_encoded_process(struct iosm_mux *ipc_mux, struct sk_buff *skb)
|
|||
ipc_mux->ul_data_pend_bytes);
|
||||
|
||||
/* Reset the skb settings. */
|
||||
skb->tail = 0;
|
||||
skb->len = 0;
|
||||
skb_trim(skb, 0);
|
||||
|
||||
/* Add the consumed ADB to the free list. */
|
||||
skb_queue_tail((&ipc_mux->ul_adb.free_list), skb);
|
||||
|
|
Loading…
Reference in a new issue