staging: most: sound: Fix error path of audio_init
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Aug 2019 13:13:46 +0000 (21:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2019 20:22:13 +0000 (22:22 +0200)
commit3982f1df00df57768f0782bc702fc4fbea347ca2
tree2c7579ad26a3cc83d1ceb16a2dbca830f080a312
parenta1617c8c3d39b1348e72d04548229e2ed9bf8121
staging: most: sound: Fix error path of audio_init

If most_register_configfs_subsys() fails, we should
call most_deregister_component() do cleanup.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 919c03ae11b9 ("staging: most: enable configfs support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190827131346.12704-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/sound/sound.c