summaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>2021-12-17 12:44:10 -0300
committerCorey Minyard <cminyard@mvista.com>2021-12-17 14:39:03 -0600
commit75d70d76cb7b927cace2cb34265d68ebb3306b13 (patch)
treed03bcc5ee2647f9d7ff841d810897313fc651599 /net/dccp
parent2b5160b12091285c5aca45980f100a9294af7b04 (diff)
downloadlinux-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