]> git.baikalelectronics.ru Git - kernel.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)
committerChris Ball <cjb@laptop.org>
Wed, 7 Nov 2012 20:02:05 +0000 (15:02 -0500)
commit4c284341b7332b3013dad4e83a220f71203e88c6
treee4e057308b28671aece200cde1516210f17af611
parent8ebd0db452eb57c59d5eb164e732056be2c1c1cc
mmc: sdhci: fix NULL dereference in sdhci_request() tuning

Commit f9f1811f10dc ("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>
Cc: stable <stable@vger.kernel.org> [3.3+]
drivers/mmc/host/sdhci.c