s390/qeth: delay draining the TX buffers
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 10 Sep 2020 09:05:18 +0000 (11:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 20:31:10 +0000 (13:31 -0700)
commit5bf490e6807bf56f49b5991b4be817407dd32656
treebbe6a558708ae9d9550f4b2ebba2b02c1c9f5713
parent83896b0bd8223ac33bcc609bcc82a57a587002ff
s390/qeth: delay draining the TX buffers

Wait until the QDIO data connection is severed. Otherwise the device
might still be processing the buffers, and end up accessing skb data
that we already freed.

Fixes: 8b5026bc1693 ("s390/qeth: fix qdio teardown after early init error")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c