diff options
author | Brett Creeley <[email protected]> | 2022-01-24 10:53:09 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-01-25 11:15:09 +0000 |
commit | 43cfed71bd528cdd07ae2e54e294d1a1972c210f (patch) | |
tree | adffb3c200eb021f7286548221927c40724fc6d8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 238a0f7c2c2135ef70b5e354d4fe937ec1b6c2b7 (diff) |
ionic: disable napi when ionic_lif_init() fails
When the driver is going through reset, it will eventually call
ionic_lif_init(), which does a lot of re-initialization. One
of the re-initialization steps is to setup the adminq and
enable napi for it. If something breaks after this point
we can end up with a kernel NULL pointer dereference through
ionic_adminq_napi.
Fix this by making sure to call napi_disable() in the cleanup
path of ionic_lif_init(). This forces any pending napi contexts
to finish and prevents them from being recalled before deleting
the napi context.
Fixes: 77ceb68e29cc ("ionic: Add notifyq support")
Signed-off-by: Brett Creeley <[email protected]>
Signed-off-by: Shannon Nelson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions