i3c master: fix missing destroy_workqueue() on error in i3c_master_register
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 28 Oct 2020 09:15:43 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:48:40 +0000 (14:48 +0100)
commitd52faa7fb12f444f70eae8b49b3d674ff8c8bf32
treeeaabf756da8510cb743ef5cb79a3100b10a4bb10
parent22f815627c64f35e199e1bc17d7225c127244e2a
i3c master: fix missing destroy_workqueue() on error in i3c_master_register

[ Upstream commit 59165d16c699182b86b5c65181013f1fd88feb62 ]

Add the missing destroy_workqueue() before return from
i3c_master_register in the error handling case.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-i3c/20201028091543.136167-1-miaoqinglang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i3c/master.c