ASoC: zx: spdif: Fix devm_ioremap_resource return value check
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Thu, 9 Jul 2015 13:19:29 +0000 (22:19 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jul 2015 11:16:33 +0000 (12:16 +0100)
commit2dfbe9afcda3243dd309826cbbb8ae9e9f602006
tree0c86bab57007a317e9d07558b00fb8c4b3edd4bb
parenta18da49ff3ec849c4584ae3abe2b83ff50705ace
ASoC: zx: spdif: Fix devm_ioremap_resource return value check

Value returned by devm_ioremap_resource() was checked for non-NULL but
devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
error this could lead to dereference of ERR_PTR.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/zte/zx296702-spdif.c