s390/qeth: conclude all event processing before offlining a card
[ Upstream commit c0a2e4d1 ] Work for Bridgeport events is currently placed on a driver-wide workqueue. If the card is removed and freed while any such work is still active, this causes a use-after-free. So put the events on a per-card queue, where we can control their lifetime. As we also don't want stale events to last beyond an offline & online cycle, flush this queue when setting the card offline. Fixes: b4d72c08 ("qeth: bridgeport support - basic control") Signed-off-by:Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Showing
- drivers/s390/net/qeth_core.h 1 addition, 1 deletiondrivers/s390/net/qeth_core.h
- drivers/s390/net/qeth_core_main.c 8 additions, 2 deletionsdrivers/s390/net/qeth_core_main.c
- drivers/s390/net/qeth_l2_main.c 4 additions, 2 deletionsdrivers/s390/net/qeth_l2_main.c
- drivers/s390/net/qeth_l3_main.c 2 additions, 0 deletionsdrivers/s390/net/qeth_l3_main.c
Loading
Please register or sign in to comment