diff options
author | Thadeu Lima de Souza Cascardo <cascardo@canonical.com> | 2021-12-17 12:44:10 -0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2021-12-17 14:39:03 -0600 |
commit | 75d70d76cb7b927cace2cb34265d68ebb3306b13 (patch) | |
tree | d03bcc5ee2647f9d7ff841d810897313fc651599 /net/dccp | |
parent | 2b5160b12091285c5aca45980f100a9294af7b04 (diff) | |
download | linux-75d70d76cb7b927cace2cb34265d68ebb3306b13.tar.bz2 |
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 <cascardo@canonical.com>
Cc: Corey Minyard <cminyard@mvista.com>
Cc: Ioanna Alifieraki <ioanna-maria.alifieraki@canonical.com>
Cc: stable@vger.kernel.org
Message-Id: <20211217154410.1228673-2-cascardo@canonical.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions