Skip to content

Commit 4227fc0

Browse files
committed
Fix eMMC emergency reboot kernel will panic because NPE
Change-Id: I11459a3a6af0adae5d8fbfef2206198c36db534d Reviewed-on: https://tp-biosrd-v02/gerrit/82823 Reviewed-by: Alex Cheng(鄭富元) <[email protected]> Tested-by: Alex Cheng(鄭富元) <[email protected]> (cherry picked from commit 976b702) Reviewed-on: https://tp-biosrd-v02/gerrit/82824
1 parent de8ac6c commit 4227fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/dw_mmc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ static void dw_mci_slot_of_parse(struct dw_mci_slot *slot)
26692669

26702670
struct dw_mci *mSdhost;
26712671
void setmmcEmergency() {
2672-
struct mmc_host *mmc = mSdhost->cur_slot->mmc;
2672+
struct mmc_host *mmc = mSdhost->slot[0]->mmc;
26732673
int ret;
26742674

26752675
mmc_power_off(mmc);

0 commit comments

Comments
 (0)