mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
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:75c486cb1b("ipmi:ssif: Clean up kthread on errors") Cc: <stable@vger.kernel.org> #91eb7ec726: ipmi:ssif: Remove unnecessary indention Cc: stable@vger.kernel.org Signed-off-by: Corey Minyard <corey@minyard.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user