Files
linux/drivers
Florian Fainelli ea7b808165 net: korina: Fix NAPI versus resources freeing
commit e6afb1ad88 upstream.

Commit beb0babfb7 ("korina: disable napi on close and restart")
introduced calls to napi_disable() that were missing before,
unfortunately this leaves a small window during which NAPI has a chance
to run, yet we just freed resources since korina_free_ring() has been
called:

Fix this by disabling NAPI first then freeing resource, and make sure
that we also cancel the restart task before doing the resource freeing.

Fixes: beb0babfb7 ("korina: disable napi on close and restart")
Reported-by: Alexandros C. Couloumbis <alex@ozo.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-05 14:40:21 +02:00
..
2016-12-05 14:53:46 -05:00
2017-06-24 07:11:17 +02:00
2017-05-20 14:28:41 +02:00
2017-06-17 06:41:50 +02:00
2017-06-17 06:41:58 +02:00
2016-09-27 12:33:47 +02:00
2017-02-23 17:44:36 +01:00
2016-09-20 20:57:12 +10:00
2017-04-21 09:31:24 +02:00
2017-06-29 13:00:31 +02:00