Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 435f3e38 authored by Alexander Tarasikov's avatar Alexander Tarasikov Committed by Chris Ball
Browse files

mmc: msm_sdcc: Fix a typo in MSM SDCC driver gpio setup



The use of && instead of || caused a NULL pointer dereference if
gpio setup was not passed via platform data

Signed-off-by: default avatarAlexander Tarasikov <alexander.tarasikov@gmail.com>
Acked-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent cb2ccc32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -939,7 +939,7 @@ static void msmsdcc_setup_gpio(struct msmsdcc_host *host, bool enable)
	struct msm_mmc_gpio_data *curr;
	int i, rc = 0;

	if (!host->plat->gpio_data && host->gpio_config_status == enable)
	if (!host->plat->gpio_data || host->gpio_config_status == enable)
		return;

	curr = host->plat->gpio_data;