Gergo Koteles 34a1066981
ASoC: tas2781: add module parameter to tascodec_init()
The tascodec_init() of the snd-soc-tas2781-comlib module is called from
snd-soc-tas2781-i2c and snd-hda-scodec-tas2781-i2c modules. It calls
request_firmware_nowait() with parameter THIS_MODULE and a cont/callback
from the latter modules.

The latter modules can be removed while their callbacks are running,
resulting in a general protection failure.

Add module parameter to tascodec_init() so request_firmware_nowait() can
be called with the module of the callback.

Fixes: ef3bcde75d06 ("ASoC: tas2781: Add tas2781 driver")
CC: stable@vger.kernel.org
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/118dad922cef50525e5aab09badef2fa0eb796e5.1707076603.git.soyer@irl.hu
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-05 14:31:37 +00:00
..
2023-05-23 12:11:21 +02:00
2023-08-17 09:24:01 +02:00
2023-08-17 09:24:08 +02:00
2023-05-23 12:11:33 +02:00
2023-05-23 12:11:21 +02:00
2017-11-13 15:45:57 +01:00
2020-11-30 12:54:02 +00:00
2024-01-08 08:18:02 +01:00
2020-09-09 18:32:52 +02:00
2019-10-25 11:06:57 +01:00