All of lore.kernel.org
 help / color / mirror / Atom feed
From: jassi brar <jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	ben-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org
Subject: Re: [PATCH 4/6] SPI: S3C64XX: Check before mem-region release
Date: Thu, 21 Jan 2010 10:35:11 +0900	[thread overview]
Message-ID: <1b68c6791001201735w3060c54blfa85b547917727c2@mail.gmail.com> (raw)
In-Reply-To: <1b68c6791001190152m652fd117k468893144af8dcfe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Tue, Jan 19, 2010 at 6:52 PM, jassi brar <jassisinghbrar@gmail.com> wrote:
> On Tue, Jan 19, 2010 at 11:32 AM, Grant Likely
> <grant.likely@secretlab.ca> wrote:
>> On Mon, Jan 18, 2010 at 4:42 PM, jassi brar <jassisinghbrar@gmail.com> wrote:
>>> On Tue, Jan 19, 2010 at 3:12 AM, Grant Likely <grant.likely@secretlab.ca> wrote:
>>>> On Mon, Jan 18, 2010 at 2:50 AM,  <jassisinghbrar@gmail.com> wrote:
>>>>> From: Jassi Brar <jassi.brar@samsung.com>
>>>>>
>>>>> Add precautionary check before releasing memory region.
>>>>>
>>>>> Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
>>>>> ---
>>>>>  drivers/spi/spi_s3c64xx.c |    3 ++-
>>>>>  1 files changed, 2 insertions(+), 1 deletions(-)
>>>>>
>>>>> diff --git a/drivers/spi/spi_s3c64xx.c b/drivers/spi/spi_s3c64xx.c
>>>>> index 3acf381..0e883f9 100644
>>>>> --- a/drivers/spi/spi_s3c64xx.c
>>>>> +++ b/drivers/spi/spi_s3c64xx.c
>>>>> @@ -1097,7 +1097,8 @@ static int s3c64xx_spi_remove(struct platform_device *pdev)
>>>>>        iounmap((void *) sdd->regs);
>>>>>
>>>>>        mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>>>>> -       release_mem_region(mem_res->start, resource_size(mem_res));
>>>>> +       if (mem_res != NULL)
>>>>> +               release_mem_region(mem_res->start, resource_size(mem_res));
>>>>
>>>>
>>>> request_mem_region() in in an unconditional path in the .probe() hook.
>>>>  Are you seeing failure on the remove path?
>>> No failure, just warnings upon running some static code analyzer.
>>
>> Okay.  For future reference, it makes my job easier (and more likely
>> that I'll pick up the patch) if the commit log states why a change is
>> being made, and not just what.
> Ok, will take care in future. Thanks.
Hi Grant Likely,
 You have reviewed this series of patches but didn't ACK/NAK.
Could you kindly confirm if u accept them or want some changes?
Thanks.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

  parent reply	other threads:[~2010-01-21  1:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18  9:50 [PATCH 1/6] SPI: S3C64XX: Rename s3c64xx_spi_cntrlr_info jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found] ` <1263808215-16544-1-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18  9:50   ` [PATCH 2/6] SPI: S3C64XX: Differentiate ip and rate clock jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found]     ` <1263808215-16544-2-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18  9:50       ` [PATCH 3/6] SPI: S3C64XX: Move src_clk to local driver data jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found]         ` <1263808215-16544-3-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18  9:50           ` [PATCH 4/6] SPI: S3C64XX: Check before mem-region release jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found]             ` <1263808215-16544-4-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18  9:50               ` [PATCH 5/6] SPI: S3C64XX: Include moved header jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found]                 ` <1263808215-16544-5-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18  9:50                   ` [PATCH 6/6] SPI: S3C64XX: Add new parameter to cs callback jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w
     [not found]                     ` <1263808215-16544-6-git-send-email-jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-18 18:15                       ` Grant Likely
     [not found]                         ` <fa686aa41001181015g6b3d35fdy8ee0f5134a8ca1a5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-18 23:49                           ` jassi brar
2010-01-18 18:13                   ` [PATCH 5/6] SPI: S3C64XX: Include moved header Grant Likely
     [not found]                     ` <fa686aa41001181013i62142f3fs5c387a406f3b7d59-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-18 23:46                       ` jassi brar
2010-01-18 18:12               ` [PATCH 4/6] SPI: S3C64XX: Check before mem-region release Grant Likely
     [not found]                 ` <fa686aa41001181012s57c0e863s6b9b6b2724514a9f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-18 23:42                   ` jassi brar
     [not found]                     ` <1b68c6791001181542p618a8d47n45a120e51cfed1f1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-19  2:32                       ` Grant Likely
     [not found]                         ` <fa686aa41001181832r3d2462f6y87649244b8afc5f2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-19  9:52                           ` jassi brar
     [not found]                             ` <1b68c6791001190152m652fd117k468893144af8dcfe-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21  1:35                               ` jassi brar [this message]
     [not found]                                 ` <1b68c6791001201735w3060c54blfa85b547917727c2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21  1:46                                   ` jassi brar
     [not found]                                     ` <1b68c6791001201746p313234bbkdf5fe5db0dcecd9f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21  2:55                                       ` Grant Likely
     [not found]                                         ` <fa686aa41001201855m5c054d90nb3652a5b0d3ffd86-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21  3:06                                           ` jassi brar
     [not found]                                             ` <1b68c6791001201906r45c52f71h7f5ea396e91ef3b8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21 15:00                                               ` Grant Likely
2010-01-21 15:10                                                 ` Carl-Daniel Hailfinger
2010-01-22 14:51                                                 ` Ralf Baechle
2010-01-18 17:58       ` [PATCH 2/6] SPI: S3C64XX: Differentiate ip and rate clock Grant Likely
     [not found]         ` <fa686aa41001180958l15df3a9dyfa5869b6f53c8fcb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-18 23:40           ` jassi brar

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=1b68c6791001201735w3060c54blfa85b547917727c2@mail.gmail.com \
    --to=jassisinghbrar-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ben-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org \
    --cc=dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.