Skip to content

ASoC: Intel: fix kernel oops in machine drivers

Pierre-Louis Bossart alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: Intel: cht_bsw_max98090: fix kernel oops with platform_name overridesound/soc/intel/boards/cht_bsw_max98090_ti.c+1 -11 reply
2/4ASoC: Intel: bytcht_es8316: fix kernel oops with platform_name overridesound/soc/intel/boards/bytcht_es8316.c+1 -11 reply
3/4ASoC: Intel: cht_bsw_nau8824: fix kernel oops with platform_name overridesound/soc/intel/boards/cht_bsw_nau8824.c+1 -11 reply
4/4ASoC: Intel: cht_bsw_rt5672: fix kernel oops with platform_name overridesound/soc/intel/boards/cht_bsw_rt5672.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ASoC: Intel: fix kernel oops in machine drivers

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(-)
Signature · 1 line
2.20.1