linux-stable/drivers/net/wwan
Sergey Ryazanov 504672038b net: wwan: core: purge rx queue on port close
Purge the rx queue as soon as a user closes the port, just after the
port stop callback invocation. This is to prevent feeding a user that
will open the port next time with outdated and possibly unrelated
data.

While at it also remove the odd skb_queue_purge() call in the port
device destroy callback. The queue will be purged just before the
callback is ivoncated in the wwan_remove_port() function.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-08 14:33:43 -07:00
..
Kconfig wwan_hwsim: WWAN device simulator 2021-06-08 14:33:43 -07:00
Makefile wwan_hwsim: WWAN device simulator 2021-06-08 14:33:43 -07:00
mhi_wwan_ctrl.c net: wwan: mhi_wwan_ctrl: Fix RX buffer starvation 2021-04-20 17:13:43 -07:00
wwan_core.c net: wwan: core: purge rx queue on port close 2021-06-08 14:33:43 -07:00
wwan_hwsim.c wwan_hwsim: add debugfs management interface 2021-06-08 14:33:43 -07:00