summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2011-06-22 16:12:28 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:32 -0700
commitab88299c8c458b706192a332915cb6b03f4cc69c (patch)
treef569cee5f6f2e958e4633651d738f631e2cc6b3d /drivers
parent442767cb6e0836bb8c204ae74f01392f713c42ed (diff)
mmc: Tegra: fix hang in sd_change_freq due to bad buf ptr passed to sd_switch
BUG=chromium-os:16770 TEST=run 'crosbug16770' command from the bug, no hangs on dev 1 (SD card) Signed-off-by: Tom Warren <twarren@nvidia.com> Change-Id: I1c130bced28a98ec02dd0baa23747aad183097c0 Reviewed-on: http://gerrit.chromium.org/gerrit/3055
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 5d161b2171..37fe80d2a2 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -711,7 +711,7 @@ retry_scr:
if (!(__be32_to_cpu(buffer[3]) & SD_HIGHSPEED_SUPPORTED))
goto out;
- err = sd_switch(mmc, SD_SWITCH_SWITCH, 0, 1, (u8 *)&buffer);
+ err = sd_switch(mmc, SD_SWITCH_SWITCH, 0, 1, (u8 *)buffer);
if (err)
goto failure;