Commit c8025000 authored by 蒋家盛's avatar 蒋家盛 Committed by Zheng Zengkai
Browse files

Bluetooth: hci_intel: Add check for platform_driver_register

stable inclusion
from stable-v5.10.137
commit 0c5dbac1ce7f82db4472b47e73654a8856fb707a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

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



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

[ Upstream commit ab2d2a98 ]

As platform_driver_register() could fail, it should be better
to deal with the return value in order to maintain the code
consisitency.

Fixes: 1ab1f239 ("Bluetooth: hci_intel: Add support for platform driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent b65cb99d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment