Re: [PATCH] mmc,sdio: Fix the panic due to devname NULL when calling pm_runtime_set_active()
From: Ohad Ben-Cohen <hidden>
Date: 2012-11-16 19:33:40
Also in:
lkml
From: Ohad Ben-Cohen <hidden>
Date: 2012-11-16 19:33:40
Also in:
lkml
Hi Liu, On Fri, Nov 16, 2012 at 2:54 PM, Chuansheng Liu [off-list ref] wrote:
So when calling pm_runtime_set_active(), it will hit the strlen(devname==0) which trigger the panic.
Can you please point to the exact line of code that triggers this panic ?
Here before calling pm_runtime_set_active(), set the dev name, although it is duplicated with mmc_add_card(), but it do not break the original design(commit 81968561b).
Normally we'd like to avoid such a solution, so let's first make sure we understand the problem. Have you tried thinking how come this shows up only now - has any of the relevant code been changed lately ? Are you using a vanilla Linux tree ? Thanks, Ohad.