diff options
| author | Florian Fainelli <f.fainelli@gmail.com> | 2016-12-23 19:56:56 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-11-06 15:30:56 +0100 |
| commit | 1f1e3e38082a32be54d6bb30a138c940708b64ef (patch) | |
| tree | 15686c12d523994c089edc41b2de76ae8b54d3bc /kernel/sysctl_binary.c | |
| parent | 23705444301c3002f16e465fc3e1c4a6484179d7 (diff) | |
net: korina: Fix NAPI versus resources freeing
commit e6afb1ad88feddf2347ea779cfaf4d03d3cd40b6 upstream.
Commit beb0babfb77e ("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: beb0babfb77e ("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: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
