]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci: fix NULL dereference in sdhci_request() tuning
authorChris Ball <cjb@laptop.org>
Mon, 5 Nov 2012 19:29:49 +0000 (14:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:16:33 +0000 (13:16 -0800)
commitf1e729c67400d3a766befa6f739f971021788878
treea46f6d8035fac8ed418b3ffcd3f39740789cb860
parentc4cbedfda2227df82126c9dd5e7593565bf45d21
mmc: sdhci: fix NULL dereference in sdhci_request() tuning

commit 14efd957209461bbdf285bf0d67e931955d04a4c upstream.

Commit 473b095a72a9 ("mmc: sdhci: fix incorrect command used in tuning")
introduced a NULL dereference at resume-time if an SD 3.0 host controller
raises the SDHCI_NEEDS_TUNING flag while no card is inserted.  Seen on an
OLPC XO-4 with sdhci-pxav3, but presumably affects other controllers too.

Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci.c