]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: iosm: fix crash in peek throughput test
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 24 Nov 2022 10:38:17 +0000 (16:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2022 11:31:59 +0000 (11:31 +0000)
commit45c0909e0b9ae6fa1b639f5015cac2d98ac5b26d
treeba4a49e239306624b442b7d24378fa18f2aa0e61
parenta1d6776cab0dcf739fdeb007809b4e6b7ad00edf
net: wwan: iosm: fix crash in peek throughput test

Peek throughput UL test is resulting in crash. If the UL
transfer block free list is exhaust, the peeked skb is freed.
In the next transfer freed skb is referred from UL list which
results in crash.

Don't free the skb if UL transfer blocks are unavailable. The
pending skb will be picked for transfer on UL transfer block
available.

Fixes: a30869e16864 ("net: wwan: iosm: Enable M.2 7360 WWAN card support")
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c