[alsa-devel] [PATCH 0/4] ASoC: Intel: fix kernel oops in machine drivers

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Tue Jun 4 22:08:54 CEST 2019


The changes made for v5.1 to override the default platform_name
assumed the card device was properly initialized so that devm_strdup()
could be used. This is true for the majority of the machine drivers,
but unfortunately this isn't valid for four of the Cherrytrail-based
ones which don't follow the same programming flow and initialize the
card device last. After hitting a kernel oops on cht-bsw-max98090
(Cyan Chromebook) I found 3 other cases where the same fix is
required.

These fixes should be applied for 5.1 and 5.2. While it's not an
excuse for this miss, the impact is limited in that the kernel oops
will only happen when SOF is used.

Pierre-Louis Bossart (4):
  ASoC: Intel: cht_bsw_max98090: fix kernel oops with platform_name
    override
  ASoC: Intel: bytcht_es8316: fix kernel oops with platform_name
    override
  ASoC: Intel: cht_bsw_nau8824: fix kernel oops with platform_name
    override
  ASoC: Intel: cht_bsw_rt5672: fix kernel oops with platform_name
    override

 sound/soc/intel/boards/bytcht_es8316.c       | 2 +-
 sound/soc/intel/boards/cht_bsw_max98090_ti.c | 2 +-
 sound/soc/intel/boards/cht_bsw_nau8824.c     | 2 +-
 sound/soc/intel/boards/cht_bsw_rt5672.c      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.20.1



More information about the Alsa-devel mailing list