]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: omap-mcbsp: Fix use of uninitialised pointer
authorAlex Dewar <alex.dewar90@gmail.com>
Sun, 4 Oct 2020 10:25:36 +0000 (11:25 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 6 Oct 2020 14:24:40 +0000 (15:24 +0100)
commit3362be5fe8f20bec36c2cddb9cc7afa29258453a
tree6846eaacb552ab521bc69a1f0c516b3da5a95f38
parent6e04bb58dae307f9541a4675e831300740193b67
ASoC: omap-mcbsp: Fix use of uninitialised pointer

Commit 2b1729a51989 ("ASoC: omap-mcbsp: Re-arrange files for core McBSP
and Sidetone function split"), in rearranging various files, also replaced
calls to platform_get_resource_by_name() + devm_ioremap_resource() with a
single call to devm_platform_ioremap_resource_byname(). However, the
struct resource is needed as we access its members so at present a null
pointer is dereferenced. Fix by doing things the old way.

Fixes: 2b1729a51989 ("ASoC: omap-mcbsp: Re-arrange files for core McBSP and Sidetone function split")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20201004102535.325547-1-alex.dewar90@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap-mcbsp.c