]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit660ae33cd06f40c04e5d5ba52de47bd1cf16fe9a
treebbe6a558708ae9d9550f4b2ebba2b02c1c9f5713
parent08b7d45daafdcb7d10f10bdd5cc9c74a7f7e3f7f
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: 489ce21a7a11 ("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