diff options
-rw-r--r-- | sound/soc/tegra/tegra_soc_controls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_soc_controls.c b/sound/soc/tegra/tegra_soc_controls.c index 202fbc964024..0370a9c261f6 100644 --- a/sound/soc/tegra/tegra_soc_controls.c +++ b/sound/soc/tegra/tegra_soc_controls.c @@ -486,6 +486,9 @@ int tegra_controls_init(struct snd_soc_codec *codec) { int err; + if (codec == NULL) + return -ENODEV; + if (!audio_data) { audio_data = kzalloc(sizeof(*audio_data), GFP_KERNEL); if (!audio_data) { |