smatch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: smatch@vger.kernel.org
Subject: Re: [PATCH 2/2] check_freeing_devm: Take advantage of the new add_allocation hook.
Date: Tue, 16 Aug 2022 11:12:12 +0300	[thread overview]
Message-ID: <20220816081212.GQ3438@kadam> (raw)
In-Reply-To: <ab17865f24f3bdf14eff39789509d6e246bcc713.1660580395.git.christophe.jaillet@wanadoo.fr>

On Mon, Aug 15, 2022 at 06:21:01PM +0200, Christophe JAILLET wrote:
> add_allocation_hook() already register many memory allocators. Use this
> list and filter function that starts with devm_ to avoid duplicating part
> of the list.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> Not sure it is a really elegant solution or an improvement.

It's definitely where I want things to go.  Ideally the other string
allocation functions would get added to the allocation function list
but I'm not sure the right format for that.

Anyway, I've applied all three patches.  Thanks!

regards,
dan carpenter

  reply	other threads:[~2022-08-16  9:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 16:20 [PATCH 1/2] smatch_allocations: Record the function that allocates memory Christophe JAILLET
2022-08-15 16:21 ` [PATCH 2/2] check_freeing_devm: Take advantage of the new add_allocation hook Christophe JAILLET
2022-08-16  8:12   ` Dan Carpenter [this message]
2022-08-16  8:10 ` [PATCH 1/2] smatch_allocations: Record the function that allocates memory Dan Carpenter

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=20220816081212.GQ3438@kadam \
    --to=dan.carpenter@oracle.com \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=smatch@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).