]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Mon, 12 Oct 2020 02:56:43 +0000 (10:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:57 +0000 (11:25 +0100)
commitf71a4021c904fd55623e4cf7c56c11be477ba153
tree60de9770b6d95d4769693ba89e21a1b25f8d7e99
parentf6e8cb839848ea2a044e65563429aa6fc368ce42
HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()

[ Upstream commit 41fff6e19bc8d6d8bca79ea388427c426e72e097 ]

In current code, it jumps to ida_simple_remove() when ida_simple_get()
failes to allocate an ID. Just return to fix it.

Fixes: 0fae198988b8 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hsi/controllers/omap_ssi_core.c