Commit 8c7d0b0b authored by Heiner Kallweit's avatar Heiner Kallweit Committed by sanglipeng
Browse files

i2c: i801: unregister tco_pdev in i801_probe() error path

stable inclusion
from stable-v5.10.198
commit e3b8c9e0fc3c467dbf5179eecb869f6a5f5723dd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e3b8c9e0fc3c467dbf5179eecb869f6a5f5723dd



--------------------------------

commit 39147845 upstream.

We have to unregister tco_pdev also if i2c_add_adapter() fails.

Fixes: 94246930 ("i2c: i801: Create iTCO device on newer Intel PCHs")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7b9b7171
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment