]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29ece1715063818a8447cc811be52f6002e0c6c1
tree2c7579ad26a3cc83d1ceb16a2dbca830f080a312
parente2318d479fa4bcaa267cc428ec1244a5ec07f059
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: 5cd4e90a13ef ("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