]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: Fix NULL dereference in sdhci_request() tuning code
authorChris Ball <cjb@laptop.org>
Mon, 5 Nov 2012 19:29:49 +0000 (14:29 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 6 Nov 2012 22:13:12 +0000 (17:13 -0500)
commitd844cc4fbbca75f307b61281b67c52572a24f5cf
treecb496421c07ae1287b2e5bde515bfd7cdaa518a2
parent0e0f5723903698977f4f34e3868a0df512c17706
mmc: Fix NULL dereference in sdhci_request() tuning code

Commit 473b095a72a9 ("mmc: sdhci: fix incorrect command used in tuning")
introduced a NULL dereference if an SD 3.0 host controller raises the
SDHCI_NEEDS_TUNING flag while no card is inserted.

Signed-off-by: Chris Ball <cjb@laptop.org>
Cc: stable <stable@vger.kernel.org> [3.3+]
drivers/mmc/host/sdhci.c