diff options
| author | Corey Minyard <corey@minyard.net> | 2026-04-21 14:50:22 +0300 |
|---|---|---|
| committer | Corey Minyard <corey@minyard.net> | 2026-04-28 20:59:15 +0300 |
| commit | a8aebe93a4938c0ca1941eeaae821738f869be3d (patch) | |
| tree | 7bc2c1899aa21dccee36a261e1f4b50326ad6e6a /drivers | |
| parent | 09dd798270ff582d7309f285d4aaf5dbebae01cb (diff) | |
| download | linux-a8aebe93a4938c0ca1941eeaae821738f869be3d.tar.xz | |
ipmi:ssif: NULL thread on error
Cleanup code was checking the thread for NULL, but it was possibly
a PTR_ERR() in one spot.
Spotted with static analysis.
Link: https://sourceforge.net/p/openipmi/mailman/message/59324676/
Fixes: 75c486cb1bca ("ipmi:ssif: Clean up kthread on errors")
Cc: <stable@vger.kernel.org> # 91eb7ec72612: ipmi:ssif: Remove unnecessary indention
Cc: stable@vger.kernel.org
Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index f3798f4e6a63..f419b46bf002 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -1905,6 +1905,7 @@ static int ssif_probe(struct i2c_client *client) "kssif%4.4x", thread_num); if (IS_ERR(ssif_info->thread)) { rv = PTR_ERR(ssif_info->thread); + ssif_info->thread = NULL; dev_notice(&ssif_info->client->dev, "Could not start kernel thread: error %d\n", rv); |
