diff options
author | Thadeu Lima de Souza Cascardo <cascardo@canonical.com> | 2021-12-17 16:44:09 +0100 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2021-12-17 21:39:03 +0100 |
commit | 2b5160b12091285c5aca45980f100a9294af7b04 (patch) | |
tree | 6103b60f89dba224e5ed395098460c82bb8d98c0 /drivers/char/tb0219.c | |
parent | ipmi: ssif: initialize ssif_info->client early (diff) | |
download | linux-2b5160b12091285c5aca45980f100a9294af7b04.tar.xz linux-2b5160b12091285c5aca45980f100a9294af7b04.zip |
ipmi: bail out if init_srcu_struct fails
In case, init_srcu_struct fails (because of memory allocation failure), we
might proceed with the driver initialization despite srcu_struct not being
entirely initialized.
Fixes: 913a89f009d9 ("ipmi: Don't initialize anything in the core until something uses it")
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Cc: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org
Message-Id: <20211217154410.1228673-1-cascardo@canonical.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/tb0219.c')
0 files changed, 0 insertions, 0 deletions