Takashi Iwai
2fc995a87f
ASoC: intel: Fix crash at suspend/resume without card registration
...
When ASoC Intel SST Medfield driver is probed but without codec / card
assigned, it causes an Oops and freezes the kernel at suspend/resume,
PM: Suspending system (freeze)
Suspending console(s) (use no_console_suspend to debug)
BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
IP: [<ffffffffc09d9409>] sst_soc_prepare+0x19/0xa0 [snd_soc_sst_mfld_platform]
Oops: 0000 [#1 ] PREEMPT SMP
CPU: 0 PID: 1552 Comm: systemd-sleep Tainted: G W 4.9.0-rc6-1.g5f5c2ad-default #1
Call Trace:
[<ffffffffb45318f9>] dpm_prepare+0x209/0x460
[<ffffffffb4531b61>] dpm_suspend_start+0x11/0x60
[<ffffffffb40d3cc2>] suspend_devices_and_enter+0xb2/0x710
[<ffffffffb40d462e>] pm_suspend+0x30e/0x390
[<ffffffffb40d2eba>] state_store+0x8a/0x90
[<ffffffffb43c670f>] kobj_attr_store+0xf/0x20
[<ffffffffb42b0d97>] sysfs_kf_write+0x37/0x40
[<ffffffffb42b02bc>] kernfs_fop_write+0x11c/0x1b0
[<ffffffffb422be68>] __vfs_write+0x28/0x140
[<ffffffffb43728a8>] ? apparmor_file_permission+0x18/0x20
[<ffffffffb433b2ab>] ? security_file_permission+0x3b/0xc0
[<ffffffffb422d095>] vfs_write+0xb5/0x1a0
[<ffffffffb422e3d6>] SyS_write+0x46/0xa0
[<ffffffffb4719fbb>] entry_SYSCALL_64_fastpath+0x1e/0xad
Add proper NULL checks in the PM code of mdfld driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
2016-11-30 17:58:53 +00:00
..
2016-10-07 20:19:31 -07:00
2016-08-01 16:07:53 +02:00
2016-10-12 20:09:36 +02:00
2016-06-24 15:18:32 +02:00
2016-09-11 09:33:12 +02:00
2016-09-16 19:23:57 +02:00
2016-07-12 12:28:04 +02:00
2016-06-01 07:35:52 +02:00
2016-02-08 08:17:15 +01:00
2016-07-26 10:38:03 +02:00
2016-10-12 20:07:25 +02:00
2016-10-07 20:19:31 -07:00
2016-06-07 11:23:33 +02:00
2016-11-30 17:58:53 +00:00
2016-01-27 07:10:38 +01:00
2016-01-20 09:59:27 +01:00
2016-01-06 10:19:49 +01:00
2016-10-12 20:10:23 +02:00
2016-07-26 10:38:03 +02:00