ASoC: spear: correct the check for NULL dma_buffer pointer
authorPrasad Joshi <prasadjoshi.linux@gmail.com>
Fri, 31 Aug 2012 03:25:21 +0000 (08:55 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 31 Aug 2012 21:24:52 +0000 (14:24 -0700)
The if condition
if (!buf && !buf->area)

checks if the buf pointer is NULL and then dereferences it again to
check if the buffer area is NULL, resulting in possible NULL
dereference.

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found