diff options
| author | Thadeu Lima de Souza Cascardo <[email protected]> | 2021-12-17 15:44:10 +0000 |
|---|---|---|
| committer | Corey Minyard <[email protected]> | 2021-12-17 20:39:03 +0000 |
| commit | 75d70d76cb7b927cace2cb34265d68ebb3306b13 (patch) | |
| tree | d03bcc5ee2647f9d7ff841d810897313fc651599 /tools/perf/scripts/python | |
| parent | ipmi: bail out if init_srcu_struct fails (diff) | |
| download | kernel-75d70d76cb7b927cace2cb34265d68ebb3306b13.tar.gz kernel-75d70d76cb7b927cace2cb34265d68ebb3306b13.zip | |
ipmi: fix initialization when workqueue allocation fails
If the workqueue allocation fails, the driver is marked as not initialized,
and timer and panic_notifier will be left registered.
Instead of removing those when workqueue allocation fails, do the workqueue
initialization before doing it, and cleanup srcu_struct if it fails.
Fixes: 1d49eb91e86e ("ipmi: Move remove_work to dedicated workqueue")
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: Ioanna Alifieraki <[email protected]>
Cc: [email protected]
Message-Id: <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
