[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1337757238.3361.1965.camel@edumazet-glaptop>
Date: Wed, 23 May 2012 09:13:58 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Yanmin Zhang <yanmin_zhang@...ux.intel.com>
Cc: David Miller <davem@...emloft.net>, kunx.jiang@...el.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ipv4: fix the rcu race between free_fib_info and
ip_route_output_slow
On Wed, 2012-05-23 at 08:55 +0200, Eric Dumazet wrote:
> Please hold on, I'll send a v2
I believe your patch should be fine, if you move back the
fib_info_cnt--;
So only do the dev_put() in free_fib_info_rcu().
No need to clear nh_dev to NULL since we are freeing fi at the end of
function.
--
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