ARM: OMAP: mcbsp: Fix possible memory corruption
authorJarkko Nikula <jarkko.nikula@bitmer.com>
Mon, 12 Dec 2011 08:38:26 +0000 (10:38 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 12 Dec 2011 18:31:54 +0000 (10:31 -0800)
commit0c8551e5fa3833c6080542da662394817fea4616
treee232b49a4a48e3e8666f2f5b1e08701871366c8d
parentdc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50
ARM: OMAP: mcbsp: Fix possible memory corruption

Commits 09d28d ("ARM: OMAP: mcbsp: Start generalize omap2_mcbsp_set_clks_src")
and 7bc0c4 ("ARM: OMAP: mcbsp: Start generalize signal muxing functions")
incorrectly set two struct omap_mcbsp_platform_data fields after
omap_device_build_ss and kfree calls.

Fix this by moving these pdata assignments before those calls.

Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Reported-by: NeilBrown <neilb@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mcbsp.c