ASoC: Intel: Add NULL checks for the stream pointer
authorJie Yang <yang.jie@intel.com>
Wed, 7 Jan 2015 14:07:05 +0000 (22:07 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 7 Jan 2015 17:32:19 +0000 (17:32 +0000)
We should not send IPC stream commands to FW when the stream is
NULL, dereference the NULL pointer may also occur without precheck.
Here add NULL pointer checks for these stream APIs.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found