]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: Add NULL check in i2s.c
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 24 Jan 2014 10:53:22 +0000 (16:23 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 24 Jan 2014 13:18:03 +0000 (13:18 +0000)
commit45ebc6b74e545964a56ed58b414cfe346cb19733
tree602bdf0e797248acbd1ccd0d03e794c872a3e277
parent44e43cbe5bd31320e8e748f84ee26502918b1856
ASoC: samsung: Add NULL check in i2s.c

'res' could be NULL from one of the operations above (line 1243). Thus
check 'res' for NULL before releasing the region to avoid null pointer
dereference.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/samsung/i2s.c