commit | fd4fb262b31ecb06bf93defb036e72b33ddf0200 | [log] [tgz] |
---|---|---|
author | Prasad Joshi <prasadjoshi.linux@gmail.com> | Fri Aug 31 08:55:21 2012 +0530 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Fri Aug 31 14:24:52 2012 -0700 |
tree | 1649a8e8ab2e7fb5ac43f8ebcfe04e732cae9d42 | |
parent | c921928661eda599d73a6a86e58bdd5aecfa18cb [diff] |
ASoC: spear: correct the check for NULL dma_buffer pointer 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>