]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: hp-bioscfg: Fix class device unregistration
authorKurt Borja <kuurtb@gmail.com>
Thu, 26 Jun 2025 01:17:35 +0000 (22:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:17 +0000 (16:03 +0200)
commita6069306f4e18b9a0bb4d778726a451ea96dbff2
tree57b75b6f6d4feb57b205cee7e28122e4d4a330ed
parent8570c219cd59d01c109ff798f6a8d57c28c222d8
platform/x86: hp-bioscfg: Fix class device unregistration

[ Upstream commit 11cba4793b95df3bc192149a6eb044f69aa0b99e ]

Devices under the firmware_attributes_class do not have unique a dev_t.
Therefore, device_unregister() should be used instead of
device_destroy(), since the latter may match any device with a given
dev_t.

Fixes: a34fc329b189 ("platform/x86: hp-bioscfg: bioscfg")
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250625-dest-fix-v1-1-3a0f342312bb@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c