From: David Brown <davidb@codeaurora.org>
To: Alexander Tarasikov <alexander.tarasikov@gmail.com>
Cc: davidb@codeaurora.org, dwalker@fifo99.com, bryanh@codeaurora.org,
cjb@laptop.org, linux-arm-msm@vger.kernel.org,
linux-mmc@vger.kernel.org
Subject: Re: [PATCH 1/2] msm: Fix a typo in MSM SDCC driver gpio setup
Date: Mon, 22 Aug 2011 08:50:41 -0700 [thread overview]
Message-ID: <20110822155041.GA4829@huya.qualcomm.com> (raw)
In-Reply-To: <1313927564-10355-2-git-send-email-alexander.tarasikov@gmail.com>
On Sun, Aug 21, 2011 at 03:52:43PM +0400, Alexander Tarasikov wrote:
> The use of && instead of || caused a NULL pointer dereference if
> gpio setup was not passed via platform data
>
> Signed-off-by: Alexander Tarasikov <alexander.tarasikov@gmail.com>
> ---
> drivers/mmc/host/msm_sdcc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
> index a4c865a..d06539d 100644
> --- a/drivers/mmc/host/msm_sdcc.c
> +++ b/drivers/mmc/host/msm_sdcc.c
> @@ -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;
Both of your patches have somehow gotten mangled in transit (the
context lines have lost their leading space). Did you perhaps edit
the patch files with an editor that is configured to fold spaces into
tabs?
I was able to fix up the files and apply the patches, and will include
these once Sahitya has a chance to review them.
Thanks,
David
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2011-08-22 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 11:52 Fixes for the MSM SDCC driver on msm7200a Alexander Tarasikov
2011-08-21 11:52 ` [PATCH 1/2] msm: Fix a typo in MSM SDCC driver gpio setup Alexander Tarasikov
2011-08-22 15:50 ` David Brown [this message]
2011-08-22 16:25 ` Alexander Tarasikov
2011-08-22 17:11 ` David Brown
2011-08-21 11:52 ` [PATCH 2/2] msm: Implement init_card operation for MSM SDCC Alexander Tarasikov
2011-08-23 10:46 ` Fixes for the MSM SDCC driver on msm7200a Sahitya Tummala
2011-08-23 14:56 ` David Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110822155041.GA4829@huya.qualcomm.com \
--to=davidb@codeaurora.org \
--cc=alexander.tarasikov@gmail.com \
--cc=bryanh@codeaurora.org \
--cc=cjb@laptop.org \
--cc=dwalker@fifo99.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox