]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:08 +0000 (08:35 +0200)
commit217ac9eebdae9f063936569c9f21e10cc5afe336
tree36a1d8b4074919120a6dc7a24c87847158e30a59
parent5757d235ba5f1e76ba0f578ae169d3697d9feb0f
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