]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: samsung: i2s: Prevent potential NULL platform data dereference
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 14 Feb 2019 15:58:40 +0000 (16:58 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 16:17:36 +0000 (16:17 +0000)
commit6e434122d9041c48841709385e823eef3225663e
treeb038a8219966cefe14240732fe130575a500dde1
parent76d9c68b360f852e784170f10cb431e4713c7d0b
ASoC: samsung: i2s: Prevent potential NULL platform data dereference

When np is NULL i2s_pdata could also be NULL but i2s_pdata is now being
dereferenced without proper check. Fix this and shorten the error message
so we don't exceed 80 characters limit.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c