]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung-i2s: Check secondary DAI exists before referencing
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 9 Sep 2014 15:51:49 +0000 (16:51 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 9 Sep 2014 19:59:06 +0000 (20:59 +0100)
commitb15a7a38cb58ef3484c0e3c108bf1110b1b6631d
tree90150b0ac1c1a399b4b1d62ccf90c014d7974bad
parentca09702717581356bb91e5bbfbb244eda384a004
ASoC: samsung-i2s: Check secondary DAI exists before referencing

In a couple of places the driver is missing a check to ensure there is a
secondary DAI before it de-references the pointer to it, causing a null
pointer de-reference. This patch adds a check to avoid this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/samsung/i2s.c