[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071008.204003.04077004.davem@davemloft.net>
Date: Mon, 08 Oct 2007 20:40:03 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: benjamin.thery@...l.net
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] [IPv6]: use container_of() macro in fib6_clean_node()
From: Benjamin Thery <benjamin.thery@...l.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@...l.net>
Applied, thanks Benjamin.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists