netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: benjamin.thery@bull.net
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] [IPv6]: use container_of() macro in fib6_clean_node()
Date: Mon, 08 Oct 2007 20:40:03 -0700 (PDT)	[thread overview]
Message-ID: <20071008.204003.04077004.davem@davemloft.net> (raw)
In-Reply-To: <20071008163316.16798.19433.stgit@frecb000701.frec.bull.fr>

From: Benjamin Thery <benjamin.thery@bull.net>
Date: Mon, 08 Oct 2007 18:33:16 +0200

> In ip6_fib.c, fib6_clean_node() casts a fib6_walker_t pointer to
> a fib6_cleaner_t pointer assuming a struct fib6_walker_t (field 'w')
> is the first field in struct fib6_walker_t.
> 
> To prevent any future problems that may occur if one day a field
> is inadvertently inserted before the 'w' field in struct fib6_cleaner_t,
> (and to improve readability), this patch uses the container_of() macro.
> 
> Patch for net-2.6.24
> 
> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>

Applied, thanks Benjamin.

      reply	other threads:[~2007-10-09  3:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 16:33 [PATCH] [IPv6]: use container_of() macro in fib6_clean_node() Benjamin Thery
2007-10-09  3:40 ` David Miller [this message]

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=20071008.204003.04077004.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=benjamin.thery@bull.net \
    --cc=netdev@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 NNTP newsgroup(s).