Files
linux/drivers/net
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-06-15 22:06:06 -07:00
2016-08-15 11:57:55 -07:00
2017-06-17 06:41:50 +02:00
2016-08-31 14:33:09 -07:00
2017-03-22 12:43:32 +01:00
2017-06-17 06:41:54 +02:00
2016-05-09 00:00:28 -04:00
2016-09-20 22:55:23 -04:00
2017-02-18 15:11:42 +01:00
2016-04-26 15:53:05 -04:00
2016-08-30 22:27:18 -07:00
2017-06-14 15:05:52 +02:00