ASoC: cs43130: fix a NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 03:51:20 +0000 (22:51 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 01:46:13 +0000 (10:46 +0900)
commita2be42f18d409213bb7e7a736e3ef6ba005115bb
treeeaa62849d591409ab40a40cc1e6cea53f5665a82
parent51dd97d1df5fb9ac58b9b358e63e67b530f6ae21
ASoC: cs43130: fix a NULL pointer dereference

In case create_singlethread_workqueue fails, the fix returns
-ENOMEM to avoid potential NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs43130.c