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)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 23 Nov 2020 09:22:16 +0000 (10:22 +0100)
commit59165d16c699182b86b5c65181013f1fd88feb62
treee0626ea55e72f08d7d466220e4e188e074346a62
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
i3c master: fix missing destroy_workqueue() on error in i3c_master_register

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
drivers/i3c/master.c