Skip to content

Commit

Permalink
Fix eMMC emergency reboot kernel will panic because NPE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alex3788 committed Jun 1, 2018
1 parent de8ac6c commit 4227fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ static void dw_mci_slot_of_parse(struct dw_mci_slot *slot)

struct dw_mci *mSdhost;
void setmmcEmergency() {
struct mmc_host *mmc = mSdhost->cur_slot->mmc;
struct mmc_host *mmc = mSdhost->slot[0]->mmc;
int ret;

mmc_power_off(mmc);
Expand Down

0 comments on commit 4227fc0

Please sign in to comment.