]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci: Check mrq != NULL in sdhci_tasklet_finish
authorChris Ball <cjb@laptop.org>
Wed, 27 Apr 2011 21:35:31 +0000 (17:35 -0400)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:43 +0000 (13:54 -0700)
commit882041535c8d3244c46bcca0f2109ac514e74dd5
treea93b3087abbb1c3d9fd9b962c1716b29cd419253
parent5c8e95fea6c5c922ecdfde9d41f460dcc2e797e4
mmc: sdhci: Check mrq != NULL in sdhci_tasklet_finish

commit 0c9c99a765321104cc5f9c97f949382a9ba4927e upstream.

It seems that under certain circumstances the sdhci_tasklet_finish()
call can be entered with mrq set to NULL, causing the system to crash
with a NULL pointer de-reference.

Seen on S3C6410 system.  Based on a patch by Dimitris Papastamos.

Reported-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/mmc/host/sdhci.c