Re: [PATCH] mmc:core:if detect mmc card remove,don't wait for req done

From: Linus Torvalds
Date: Thu Dec 20 2012 - 10:49:46 EST


Hi,

On Thu, Dec 20, 2012 at 1:32 AM, <zhenpeng.qian@xxxxxxxxx> wrote:
>
> I find a bug about mmc/core/core.c, and send you a patch which I fix
> this bug.
>
> In fact, the bug is a low probability of occurrence.
>
> Hope you help me to analyze it and discuss with me.

I've added the proper people - Chris Ball and linux-mmc - to the
participants list.

I also wanted to check with you: the commit message implies that this
can cause an IO timeout and then a call to
msmsdcc_start_command_deferred() with a NULL cmd->mrq. Which I assume
results in a NULL pointer dereference and Oops, but that wasn't
spelled out.

Chris, please give it a look, and perhaps edit the commit message a bit.

Linus

Attachment: 0001-mmc-core.patch
Description: Binary data