From: Kuninori Morimoto Date: Thu, 25 Feb 2016 05:51:12 +0000 (+0000) Subject: ASoC: rsnd: don't call update callback if it was NULL X-Git-Tag: v4.4.85~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ec0b2c2d2354ca5322513b83cbf925eec8c38ba;p=thirdparty%2Fkernel%2Fstable.git ASoC: rsnd: don't call update callback if it was NULL commit d7289565483c65094d0473555625a4acd89567d3 upstream. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: Thong Ho Signed-off-by: Nhan Nguyen Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 10b93991ae97b..362446c36c9ea 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1016,7 +1016,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl, } } - if (change) + if (change && cfg->update) cfg->update(cfg->io, mod); return change;