]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00218807 ESAI: fix bootup issue cause by accessing unexist address
authorChen Liangjun <b36089@freescale.com>
Mon, 30 Jul 2012 09:31:32 +0000 (17:31 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:34 +0000 (14:12 +0200)
commit6f5b6591c85dbaf3f83d65a4cd60d8eeb0cfc4de
tree36a1d8b4074919120a6dc7a24c87847158e30a59
parent21b2e39b7158f983c749493ba1d91e5dde92ab59
ENGR00218807 ESAI: fix bootup issue cause by accessing unexist address

To support p2p playback, ESAI driver would copy platform data to
esai_asrc struct. The platform data only exist on boards that supports
ESAI. However, for ARM2 board, it supports ESAI but not necessary
get the codec CS42888. Thus the probe() in ESAI driver would also try to
copy the platform data from board init file.

The p2p playback now only support ARD board, so the ESAI probe() for
ARM2 would access unexisted address and cause an kernel dump.

In the patch, check the platform data address before copy.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
sound/soc/imx/imx-cs42888.c