Richard Fitzgerald d7789f5bcd
ASoC: wm_adsp: For TLV controls only register TLV get/set
Normal 512-byte get/set of a TLV isn't supported but we were
registering the normal get/set anyway and relying on omitting
the SNDRV_CTL_ELEM_ACCESS_[READ|WRITE] flags to prevent them
being called.

Trouble is if this gets broken in the core ALSA code - as it has
been since at least 4.14 - the standard get/set can be called
unexpectedly and corrupt memory.

There's no point providing functions that won't be called and
it's a trivial change. The benefit is that if the ALSA core gets
broken again we get a big fat immediate NULL dereference instead
of a memory corruption timebomb.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2018-02-28 10:38:40 +00:00
..
2017-09-04 18:24:56 +01:00
2017-09-04 14:50:49 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00
2017-07-09 18:48:37 -07:00
2015-08-31 16:25:22 +02:00
2017-11-13 15:45:57 +01:00
2017-11-13 15:45:57 +01:00