Codrin Ciubotariu da7260cc8d
ASoC: codecs: ad193x: Fix memory corruption on BE 64b systems
Since change_bit() requires unsigned long*, making this cast on an
unsigned int variable will change a wrong bit on BE platforms, causing
memory corruption. Replace this function with a simple XOR.

Fixes: 90f6e6803139 ("ASoC: codecs: ad193x: Fix frame polarity for DSP_A format")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-06-26 12:26:02 +01:00
..
2018-02-12 09:37:29 +00:00
2019-02-04 17:12:05 +01:00
2018-02-27 10:41:34 +00:00
2019-04-05 09:54:49 +07:00
2019-04-04 20:56:08 +07:00
2014-04-07 10:48:50 +01:00
2015-07-07 13:35:13 +01:00
2019-01-07 16:51:32 +00:00
2019-01-04 15:09:48 +00:00
2018-10-25 09:00:15 -07:00
2016-08-08 11:55:20 +01:00
2019-03-25 15:53:19 +00:00
2018-02-20 12:05:58 +00:00
2018-12-07 12:20:42 +00:00
2018-04-26 12:44:15 +01:00
2018-05-18 17:46:03 +01:00
2019-02-11 16:01:31 +00:00
2019-02-11 16:01:31 +00:00
2017-07-18 14:46:20 +01:00
2019-01-07 16:52:00 +00:00
2019-01-07 16:54:34 +00:00
2015-12-19 12:02:18 +00:00
2019-01-07 16:52:14 +00:00
2018-02-12 11:48:26 +00:00
2018-10-25 09:00:15 -07:00
2014-07-02 20:49:25 +01:00
2018-05-18 11:20:11 +01:00
2018-06-27 12:26:41 +01:00
2018-06-27 12:26:41 +01:00
2016-06-26 12:28:13 +01:00
2019-01-07 16:53:10 +00:00
2018-06-01 12:05:30 +01:00
2018-08-28 20:11:37 +01:00
2015-04-08 19:25:40 +01:00
2019-01-03 16:34:06 +00:00
2018-09-18 10:28:29 -07:00